Krzysztof Gabis
302fba9cbb
Makes escaping slashes when serializing JSON optional (adds json_set_escape_slashes() function)
...
Issues #20 #34 #90
6 years ago
zolvarga
69684f600c
Remove trailing spaces
6 years ago
Krzysztof Gabis
2bfa4153db
Updates copyright.
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.
...
Addresses issues #66 and #30 .
8 years ago
Krzysztof Gabis
a1c356eaa9
Adds functions to check if object has value with a certain name (and optionally type).
...
This closes #42 .
8 years ago
Krzysztof Gabis
f60ddcd05b
Adds missing character (in a comment).
9 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.
...
Also adds some missing null checking.
9 years ago
Krzysztof Gabis
c9b920c4a3
Fixes a bug in json_array_remove and adds relevant tests (thanks to KB for finding this).
...
Also - it's 2016, time to update copyright notices, yay!
9 years ago
Krzysztof Gabis
86a5a20856
Adds comments regarding memory management.
9 years ago
Krzysztof Gabis
18761d99ff
Checking if json_serialization_size failed.
9 years ago
Krzysztof Gabis
f16e4292f3
Using same code for determining serialization buffer size and serialization. Updated license year.
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
Michael Sproul
fcf0b810ba
Marked various files as not executable.
...
Also updated the .gitignore file to ignore object code,
which is particularly useful when using this project as a
git submodule.
10 years ago
Krzysztof Gabis
638190d6a0
Merged changes from parson-devel (serialization, copying, comparing, validation, creating values).
10 years ago
Krzysztof Gabis
c707051778
Added surrogate pairs support (JSON support is full now), removed PARSON_VERSION macro.
11 years ago
Krzysztof Gabis
d5adf4e291
Added functions to parse file with comments and new tests.
...
json_parse_value_with_comments and json_parse_string_with_comments replace comments with whitespaces before parsing. Supported comments are: /* */ and //
11 years ago
Krzysztof Gabis
f7f11572c9
Fixed bug in nget function, added 2 functions to API, improved memory allocs.
...
Details:
- Fixed bug, where json_object_nget_value returned wrong values.
- json_object_get_count returns a number of object's name-value pairs.
- json_object_get_name returns a name at a specific index.
- Both functions allow iterating over every value in a object.
- Changed max capacity for JSON_Array and JSON_Object (they're not equal anymore).
- Added functions to resize object and array, which are also used after parsing to "trim" them to their real lengths.
- Added try_realloc function.
- Added SUCCESS and ERROR macros to make code more readable.
- Code cleanup.
12 years ago
Krzysztof Gabis
202f16cc5c
Additional code cleanup.
...
Removed redundant typedefs, renamed JSON_value_t to JSON_Value_Type and JSON_value_value to JSON_Value_Value to make names more consistent across project. Added project's name and url above license.
12 years ago
sduclos
684096eb0f
code clea up
12 years ago
Krzysztof Gabis
410807850e
Fixed some compatibility issues with C++ compilers.
...
Added error type to json value types. Also implemented strdup and strndup, since they can be problematic and are not implemented everywhere.
12 years ago
Krzysztof Gabis
2740213c5c
Renamed bool to boolean.
...
Naming variables bool is a poor idea, even in C.
12 years ago
Krzysztof Gabis
de829803e3
Initial commit.
12 years ago