DaveGamble / cJSON

Ultralightweight JSON parser in ANSI C
MIT License
10.74k stars 3.21k forks source link

Large Numbers as strings #579

Open schmidtw opened 3 years ago

schmidtw commented 3 years ago

I wanted to see if there would be any interest in accepting a patch where large numbers (like even larger than 64bit numbers) would be handled as a string in addition to a native type, or if large enough, just a string.

Why strings?

schmidtw commented 3 years ago

I went an wrote up what I had in mind & got the tests working as well. https://github.com/DaveGamble/cJSON/pull/580

schmidtw commented 3 years ago

@Alanscut what do you think about this approach?