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

How to parse valueint64? #899

Open
24368247 opened this issue Nov 7, 2024 · 1 comment
Open

How to parse valueint64? #899

24368247 opened this issue Nov 7, 2024 · 1 comment

Comments

@24368247
Copy link

24368247 commented Nov 7, 2024

{"Id":"1","Sn":"0061100001","Name":"register_rpl","Version":"1.0","Timestamp":1730884535,"Payload":{"ProjectId":1849017011531812866,"FailMessage":""},"Code":200}
how to get ProjectId as valueint64?

@mbratch
Copy link

mbratch commented Dec 26, 2024

Using cJSON as-is doesn't use a 64-bit integer type (or, the 80-bit long double type). I think the reason for this is that the philosophy of cJSON is to be portable for even smaller embedded systems.

The source license for cJSON is very generous and allows you to modify it to your liking. We needed 64-bit integers on our embedded project and we simply modified it to support them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants