Commit Graph

62 Commits (e3176df55d290f612089aa8af33a9f3f30f86456)

Author SHA1 Message Date
t-k- e3176df55d Expose a lower-level API for encoding C string. 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. 9 years ago
Krzysztof Gabis 473c7f3d8d Adds json_object_get_value_at function to access values in objects in O(1) time. 9 years ago
Krzysztof Gabis 77ef99571e Avoiding _CRT_SECURE_NO_WARNINGS redefinition. 9 years ago
Krzysztof Gabis 0c04a7e678 Removes unnecessary SKIP_WHITESPACES. 9 years ago
Krzysztof Gabis f860d3dd1b Accepting json texts that are not objects or arrays. 9 years ago
Krzysztof Gabis 19c1175064 Fixes a bug where fopen() error was being ignored. 9 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). 10 years ago
Rinat Ibragimov 9782447a74 free temporary JSON_Value's on failure 10 years ago
Rinat Ibragimov 717e551cb2 free memory after json_value_init_string_no_copy() failure 10 years ago
Rinat Ibragimov 33b77673cb check if ftell() returns -1 10 years ago
Krzysztof Gabis 2b4d17b337 Replaced strlen in process_string with pointer arithmetic. 10 years ago
Krzysztof Gabis 4a4cf7d795 Not parsing strings in json_value_init_string and *{set,dotset,replace,append}_string functions. 10 years ago
Krzysztof Gabis 0d5ac45286 Added additional null checks and tests. 10 years ago
Michael Sproul fcf0b810ba Marked various files as not executable. 10 years ago
Krzysztof Gabis f57f2d94bb No longer escaping '/' when serializing. 10 years ago
@gageas 775b2b21d0 Fix compile error on C++ compiler. (mismatch between char* and const char*) 10 years ago
Krzysztof Gabis 638190d6a0 Merged changes from parson-devel (serialization, copying, comparing, validation, creating values). 10 years ago
Krzysztof Gabis 6e9e934b5a Bugfix in parsing escaped characters (+ additional tests to prevent this bug in future). 10 years ago
Krzysztof Gabis c707051778 Added surrogate pairs support (JSON support is full now), removed PARSON_VERSION macro. 11 years ago
Fedor Indutny ce73431753 Skip whitespace at the start of string/file 11 years ago
Stephen Mathieson 4413910346 Fix memory leak 11 years ago
Krzysztof Gabis 08a4396b32 Fixed warnings and error resulting in printing string without comments (old debug statement). 11 years ago
Krzysztof Gabis d901014d55 New lines after flow control statements are now consistent. 11 years ago
Krzysztof Gabis d5adf4e291 Added functions to parse file with comments and new tests. 11 years ago
Sean Turley 3585c6d030 Check ferror if fread call fails in json_parse_file 11 years ago
Sylvain Miermont cbb51719cf Checking that fread *actually* succeeds, fix the warning bellow when compiling with -O1, -O2 or -O3. 11 years ago
Erik Dubbelboer 7ee068b7a6 Fix macro argument bug 11 years ago
Taro Kobayashi cfbf517166 ignore only 0x00-0x19 to support utf-8 characters 12 years ago
Krzysztof Gabis 29595c80ec Accepting DEL characters in strings. 12 years ago
Krzysztof Gabis c4af3f9583 Changed object's and array's initlalization to be lazy. 12 years ago
Krzysztof Gabis b2dbaece40 Fixed issue with MSVC and unicode characters. 12 years ago
Krzysztof Gabis 457fa1100f Small code cleanup, narrower example code in tests and readme. 12 years ago
Krzysztof Gabis f7f11572c9 Fixed bug in nget function, added 2 functions to API, improved memory allocs. 12 years ago
Krzysztof Gabis aaf1d45f16 Code refractoring. 12 years ago