bblanchon / ArduinoJson

📟 JSON library for Arduino and embedded C++. Simple and efficient.
https://arduinojson.org
MIT License
6.76k stars 1.12k forks source link

Does this support JSON5 #1687

Open longweismile opened 2 years ago

longweismile commented 2 years ago

Describe the issue
A clear and concise description of what you're trying to do. You don't need to explain every aspect of your project: focus on the problem you're having.

Troubleshooter report
Here is the report generated by the ArduinoJson Troubleshooter:
[Paste the report here]

Environment
Here is the environment that I'm using':

Reproduction
Here is a small snippet that demonstrate the problem.

DynamicJsonDocument doc(1024);

DeserializationError error = deserializeJson(doc, "{\"hello\":\"world\"}");

// insert code here

Program output
If relevant, include the program output.

Expected output:

[insert expected output here]

Actual output:

[insert actual output here]
bblanchon commented 2 years ago

Hi @longweismile,

No, ArduinoJson doesn't support JSON5 at the moment.

Since several users asked to allow hexadecimal values (#1401, #1686), I plan on adding support for JSON5 input in the form of a new deserializeJson5() function. However, I don't plan on adding JSON5 output.

Best regards, Benoit