Krzysztof Gabis
2bfa4153db
Updates copyright.
8 years ago
Krzysztof Gabis
96150ba1fd
Removes dependency on sscanf and prints line numbers in tests output.
...
Some libraries don't have sscanf and since it wasn't used heavily it was easily replaced with a custom function. This doesn't mean that sscanf won't be used in future though (but I'll try to avoid it).
Fixes #68 . Thanks to @compulim for initial work on this issue.
8 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.
...
Addresses issues #66 and #30 .
8 years ago
Krzysztof Gabis
dcf85b88c8
Support for UTF-8 with BOM.
...
Fixes #65
8 years ago
Krzysztof Gabis
b61c03e614
Updates README.md.
8 years ago
Krzysztof Gabis
1bcab43c38
Merge pull request #55 from jmlemetayer/unsigned
...
Add support to print unsigned integers
8 years ago
Jean-Marie Lemetayer
d198f6ebfe
Add support to print unsigned integers
...
Else numbers between INT_MAX and UINT_MAX will be printed using double format
8 years ago
Krzysztof Gabis
642f0cb4f5
Merge pull request #52 from t-k-/escape
...
Further escape \x00 - \x1F control characters.
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).
...
This closes #42 .
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
Krzysztof Gabis
21c0364048
Merge pull request #41 from jacobenget/master
...
Fix for array element validation
8 years ago
Jacob Enget
1c1b77aa7e
Fixes typo causing problems with array element validation
8 years ago
Jacob Enget
9d6fbde0c4
Adds test that fails when validating array elements
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
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.
...
According to RFC 7159 it's now valid to accept json texts that are not object or arrays.
Also reordered realloc opeartion in json_object_add to not be called if key already exists.
9 years ago
Krzysztof Gabis
19c1175064
Fixes a bug where fopen() error was being ignored.
9 years ago
Krzysztof Gabis
d7726760e0
Merge pull request #35 from vovanec/patch-1
...
Fixed error condition on malloc failure.
9 years ago
Volodymyr Kuznetsov
c27133715b
Fixed error condition on malloc failure.
...
Fixed error condition on malloc failure, it looks like it should be temp_values, not temp_names.
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
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
86a5a20856
Adds comments regarding memory management.
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
f4538fa53d
Small change in test files.
9 years ago
Krzysztof Gabis
f4cfcd7699
Updates serialization example and readme.md
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
Krzysztof Gabis
7ead2102b8
Merge pull request #29 from i-rinat/fixups
...
Handle failures.
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
Krzysztof Gabis
81c2fd0186
Merge pull request #23 from michaelsproul/no-exec-perms
...
Mark various files as not executable.
10 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
1058e3b2c0
Fixed bug in example code.
10 years ago