securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4.02k stars 603 forks source link

JSON validation does not catch leading zeros #1827

Open noa-dav opened 1 year ago

noa-dav commented 1 year ago

Problem

The JSON validation in the react-ace library fails to detect and raise an error when a JSON number contains a leading zero. According to the JSON specification, leading zeros are not allowed in numbers. This can result in incorrect parsing and unexpected behavior when working with JSON data.

pranavmappoli commented 2 months ago

@noa-dav How you enabled JSON validation in Ace editor, Can you help me with some snippets