Commit Graph

89 Commits (8d8850d9d5075eaac96f343b6aae5ab1b700dec7)

Author SHA1 Message Date
ɹɐɯsǝʎ 186680a511 Guard against potential integer overflow (#133) 5 years ago
dan soucy 9d63e76014 Avoid truncating strings warning (#131) 5 years ago
Krzysztof Gabis 0341880552 Using semantic versioning from now on, Parson is officially 1.0.0 5 years ago
Dan Ellis 9e1de5086f Fix memory leaks in `parson_object_set_*` when `object` is invalid 5 years ago
Krzysztof Gabis c5bb9557fe Updates copyright year. 5 years ago
Akihiro Suda 9ec77a8d74 add SPDX-License-Identifier 5 years ago
Krzysztof Gabis 302fba9cbb Makes escaping slashes when serializing JSON optional (adds json_set_escape_slashes() function) 6 years ago
Krzysztof Gabis b58ac757a8 Using isnan and isinf macros if they are defined (fixes issue #104). 6 years ago
Krzysztof Gabis 4f3eaa6849 Not adding incorrect objects if json_object_dotset_value() fails halfway through. 6 years ago
Krzysztof Gabis 921da6f5d7 Using smaller buffer size for number serialization. 6 years ago
Krzysztof Gabis 387c5665f6 Better handling of CRLF line breaks. 6 years ago
Roy Sprowl 385b476a30 Fix signed char fed to isspace 7 years ago
Roman Kalashnikov f1bb6e7fbe
Fixed condition 7 years ago
Krzysztof Gabis 4e8a901242 Changes float print format, removes array/object capacity limit, doesn't accept inf/nan numbers. 7 years ago
Krzysztof Gabis e1292a0e3c Small refactoring in parse_utf16 (+ tests) and typo fix in json_array_remove. 7 years ago
Krzysztof Gabis 343fe13f17 Order of items in an array is preserved after removing an item. 7 years ago
Krzysztof Gabis d485b068c7 Fixes a memory leak (issue #82). 7 years ago
Krzysztof Gabis e410fc7c33 Increases MAX_NESTING of json objects/arrays to 2048. 7 years ago
Krzysztof Gabis 20ad63f8ff Fixes memory leaks. 7 years ago
Krzysztof Gabis ba2a854c27 Fixes undefined behaviour as reported by clang ub sanitizer. 7 years ago
Krzysztof Gabis 2bfa4153db Updates copyright. 7 years ago
Krzysztof Gabis 96150ba1fd Removes dependency on sscanf and prints line numbers in tests output. 7 years ago
Krzysztof Gabis cb14736e96 Checking errno after strtod call. 8 years ago
Krzysztof Gabis defb57f2d3 Some extra null checks (issue #60). 8 years ago
Krzysztof Gabis f419334a32 Adds links to parent values and values used to wrap objects/arrays. Assigning a value to 2 objects/arrays returns an error now. 8 years ago
Krzysztof Gabis dcf85b88c8 Support for UTF-8 with BOM. 8 years ago
Jean-Marie Lemetayer d198f6ebfe Add support to print unsigned integers 8 years ago
t-k- 7b90bbbf24 Further escape \x00 - \x1F control characters. 8 years ago
Krzysztof Gabis c22be794ce Using braces in every if statement + whitespace cleanup. 8 years ago
Krzysztof Gabis a1c356eaa9 Adds functions to check if object has value with a certain name (and optionally type). 8 years ago
Krzysztof Gabis bcefc459dd Changes skip_quotes return type to JSON_Status. 8 years ago
Krzysztof Gabis 8075050bc1 Fixes #43 8 years ago
Jacob Enget 1c1b77aa7e Fixes typo causing problems with array element validation 8 years ago
Krzysztof Gabis 5c4a11b036 Removes trailing whitespace. 8 years ago
Krzysztof Gabis 473c7f3d8d Adds json_object_get_value_at function to access values in objects in O(1) time. 8 years ago
Krzysztof Gabis 77ef99571e Avoiding _CRT_SECURE_NO_WARNINGS redefinition. 8 years ago
Krzysztof Gabis 0c04a7e678 Removes unnecessary SKIP_WHITESPACES. 8 years ago
Krzysztof Gabis f860d3dd1b Accepting json texts that are not objects or arrays. 8 years ago
Krzysztof Gabis 19c1175064 Fixes a bug where fopen() error was being ignored. 8 years ago
Volodymyr Kuznetsov c27133715b Fixed error condition on malloc failure. 9 years ago
Krzysztof Gabis c9b920c4a3 Fixes a bug in json_array_remove and adds relevant tests (thanks to KB for finding this). 9 years ago
Krzysztof Gabis 8324ff92bf Escaping / to make json embeddable in xml\/html. 9 years ago
Krzysztof Gabis 849f00728b parson should compile with c++ compilers (again). 9 years ago
Krzysztof Gabis 18761d99ff Checking if json_serialization_size failed. 9 years ago
Krzysztof Gabis 8eb5eab54d Checking if serialization_size is <0 before casting from int to size_t. 9 years ago
Krzysztof Gabis f16e4292f3 Using same code for determining serialization buffer size and serialization. Updated license year. 9 years ago
Krzysztof Gabis 83a0a3e133 Changed "json_serialize_to_buffer_r" to return number of written characters. 9 years ago
Krzysztof Gabis 6905548257 Pretty serialization + tests. 9 years ago
Krzysztof Gabis 1586461280 Adds function to change default allocator, fixes potential memory leak, refactoring. 9 years ago
Krzysztof Gabis 7fd8dc1c4c UTF8 validation in json_value_init_string (+ tests). 9 years ago