thingsdb / ThingsDB

Node - The ThingsDB Core
https://thingsdb.io
GNU General Public License v3.0
42 stars 3 forks source link

JSON load string can create reserved thing keys #382

Closed joente closed 5 months ago

joente commented 5 months ago

Describe the bug When loading JSON string with the json_load() function, it is possible to load reserved keys.

To Reproduce

json_load('{"#": 123}');

Expected behavior A value error is expected with a message that the property is reserved.