decatur / ansatz27

⚠️ Deprecated. A validating and round-tripping JSON Parser and Stringifier for GNU Octave and MATLAB®.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stringify throws error on empty array if type is "object"

tscheburaschka opened this issue · comments

Stringify throws an error when trying to serialize an empty Matlab array and the corresponding schema.type is set to "object".
Example:
schema.json: { "type": "object"}
payload.m: [] (empty double)
throws error in JSON.validate() line 124.