montegoulding / mergJSON

JSON encode / decode external for LiveCode
http://mergext.com
GNU General Public License v3.0
12 stars 11 forks source link

[[ NumberAsString ]] Use JSON_DECODE_NUMBER_AS_STRING #11

Closed montegoulding closed 6 years ago

montegoulding commented 6 years ago

This patch makes use of JSON_DECODE_NUMBER_AS_STRING to ensure that any numbers in the JSON are parsed as strings and therefore there is no loss in precision or overflow risk between Jansson parsing as int or real and mergJSON formatting as string to return to LiveCode.

This patch also updates the Jansson submodule to version 2.11.0.

See this PR for JSON_DECODE_NUMBER_AS_STRING