Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this support JSON5 #1687

Open
longweismile opened this issue Dec 16, 2021 · 1 comment
Open

Does this support JSON5 #1687

longweismile opened this issue Dec 16, 2021 · 1 comment

Comments

@longweismile
Copy link

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':

  • Microconroller: [e.g. ESP8266]
  • Core/runtime: [e.g. ESP8266 core for Arduino v3.0.2]
  • IDE: [e.g. Arduino IDE 1.8.16]

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
Copy link
Owner

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2022
@bblanchon bblanchon reopened this Dec 13, 2022
Repository owner unlocked this conversation Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants