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
Krzysztof Gabis
f57f2d94bb
No longer escaping '/' when serializing.
10 years ago
Krzysztof Gabis
c88c775d23
Fixed floating point number comparison in tests (using fabs).
10 years ago
Krzysztof Gabis
69927e1612
Merge pull request #18 from gageas/master
...
Fix compile error on C++ compiler.
10 years ago
@gageas
775b2b21d0
Fix compile error on C++ compiler. (mismatch between char* and const char*)
10 years ago
Krzysztof Gabis
e4ac46318e
Fixed memory leak in example.
10 years ago
Krzysztof Gabis
638190d6a0
Merged changes from parson-devel (serialization, copying, comparing, validation, creating values).
10 years ago
Krzysztof Gabis
55856a2eab
Changes to readme.
10 years ago
Krzysztof Gabis
6e9e934b5a
Bugfix in parsing escaped characters (+ additional tests to prevent this bug in future).
...
Thanks to Joseph Werle for bringing attention to it.
10 years ago
Krzysztof Gabis
c707051778
Added surrogate pairs support (JSON support is full now), removed PARSON_VERSION macro.
11 years ago
Krzysztof Gabis
19a0d79db4
Merge pull request #13 from indutny/fix/handling-files-with-whitespace
...
Skip whitespace at the start of string/file
11 years ago
Fedor Indutny
ce73431753
Skip whitespace at the start of string/file
11 years ago
Krzysztof Gabis
148e0ccbef
Merge pull request #12 from stephenmathieson/fix/memory-leak
...
Fix memory leak
11 years ago
Stephen Mathieson
4413910346
Fix memory leak
...
If `fread` fails, `file_contents` is leaked. I’m just freeing the memory allocated :)
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.
...
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
080325e566
Merge pull request #11 from stephenmathieson/add/package.json
...
Adds a package.json file.
11 years ago
Stephen Mathieson
18fe24a8c0
adding a package.json file
11 years ago
Krzysztof Gabis
a8c04faa39
Merge pull request #10 from spt5007/master
...
Check ferror if fread call fails in json_parse_file
11 years ago
Sean Turley
3585c6d030
Check ferror if fread call fails in json_parse_file
11 years ago
Krzysztof Gabis
713b563375
Merge pull request #8 from sylvain-miermont/master
...
Warning when compiling with -O2
11 years ago
Sylvain Miermont
cbb51719cf
Checking that fread *actually* succeeds, fix the warning bellow when compiling with -O1, -O2 or -O3.
...
"warning: ignoring return value of 'fread', declared with attribute warn_unused_result"
11 years ago
Krzysztof Gabis
a024f1197c
Merge pull request #6 from spotmx/macrobug
...
Fix macro argument bug.
11 years ago
Erik Dubbelboer
7ee068b7a6
Fix macro argument bug
11 years ago
Krzysztof Gabis
9dfee46821
Merge pull request #5 from 9re/master
...
Allow utf-8 encoded strings.
12 years ago
Taro Kobayashi
155f7f0639
added test that will fails on android
12 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.
...
DEL characters are allowed according to JSON's specification (http://www.ietf.org/rfc/rfc4627.txt ). Thanks to Fulvio Esposito for pointing this out.
12 years ago
Krzysztof Gabis
c4af3f9583
Changed object's and array's initlalization to be lazy.
...
Now object's names and values and array's items are allocated (with starting capacity) only after first item is added.
This will prevent wasting memory when parsing empty objects and arrays.
12 years ago
Krzysztof Gabis
d1ca0ed4f3
Readme file update.
12 years ago