Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-09-04 | doc: Fix typo | Petri Lehtinen | 1 | -3/+3 | |
2009-09-04 | Add reference stealing functions for inserting values to objects and arrays | Petri Lehtinen | 5 | -13/+101 | |
The non-stealing functions are now just simple wrappers around these. | |||||
2009-09-02 | Change the version to 1.0+ | Petri Lehtinen | 2 | -2/+2 | |
2009-08-25 | jansson 1.0v1.0 | Petri Lehtinen | 2 | -3/+4 | |
2009-08-25 | Distribute appropriate files | Petri Lehtinen | 4 | -1/+12 | |
2009-08-25 | test: Add Makefile.am to test/testprogs | Petri Lehtinen | 3 | -3/+14 | |
This way it's an individual subdirectory and things go easier. | |||||
2009-08-25 | Add some missing copyright notices | Petri Lehtinen | 2 | -0/+12 | |
2009-08-24 | Detect garbage near EOF in json_loadf() and json_load_file() | Petri Lehtinen | 2 | -0/+21 | |
2009-08-24 | Add test for numbers | Petri Lehtinen | 3 | -1/+46 | |
2009-08-23 | Expand value test coverage | Petri Lehtinen | 6 | -2/+256 | |
2009-08-23 | array: Fix a few checks and a leak | Petri Lehtinen | 1 | -2/+4 | |
2009-08-23 | run-test: Don't remove all testlogs when starting a new test suite | Petri Lehtinen | 1 | -2/+1 | |
2009-08-13 | Add README and API reference | Petri Lehtinen | 11 | -1/+788 | |
2009-08-04 | Refuse to dump other types than array and object as the root value | Petri Lehtinen | 1 | -0/+6 | |
2009-07-30 | Remove unimplemented json_clone() | Petri Lehtinen | 1 | -2/+0 | |
2009-07-30 | Add macro json_is_boolean | Petri Lehtinen | 1 | -0/+1 | |
2009-07-30 | Add LICENSE and a copyright note to all sources | Petri Lehtinen | 18 | -0/+130 | |
2009-07-28 | Rename json_{load,dump} to json_{load,dump}_file | Petri Lehtinen | 7 | -41/+41 | |
2009-07-28 | Fix some memory leaks and invalid memory references | Petri Lehtinen | 3 | -7/+27 | |
2009-07-28 | Enhance test system | Petri Lehtinen | 9 | -137/+170 | |
- Tests are now named - Testlogs are preserved between runs - Tests can be run through Valgrind Memcheck tool | |||||
2009-07-26 | Expand encoder test coverage | Petri Lehtinen | 2 | -1/+5 | |
2009-07-26 | Expand parser and Unicode test coverage | Petri Lehtinen | 7 | -17/+123 | |
2009-07-16 | Implement support for \u escapes | Petri Lehtinen | 5 | -13/+152 | |
2009-07-16 | Show the whole UTF-8 sequence in error message, not just the first byte | Petri Lehtinen | 1 | -1/+14 | |
2009-07-16 | Remove TODO | Petri Lehtinen | 1 | -18/+0 | |
2009-07-14 | Report errors from lexical and stream level in parser | Petri Lehtinen | 2 | -57/+93 | |
Before, only the syntax level (parse_*) was able to set the error string. This patch fixes the situation so that lexical (lex_*) and stream (stream_*) levels can report detailed error messages. Also, instead of 0, EOF is now returned by stream on error. | |||||
2009-07-13 | Get rid of JSON_SORT_KEYS dump flag | Petri Lehtinen | 1 | -1/+0 | |
Object sorting will be implemented later. | |||||
2009-07-13 | Decode and check for correct UTF-8 | Petri Lehtinen | 6 | -4/+189 | |
All strings (decoded JSON text, the argument of json_string(), the key argument of json_object_set()) are checked for valid UTF-8. | |||||
2009-07-13 | Streamify the loader | Petri Lehtinen | 4 | -133/+265 | |
It's no longer needed to load the whole input into a string and then parse from the string. Instead, the input is read as needed from a string or file. | |||||
2009-07-13 | Get rid of json_dumpfd and json_loadfd | Petri Lehtinen | 7 | -80/+1 | |
fdopen() makes supporting separate API for file descriptors useless. Supporting fd's also makes Jansson less portable. | |||||
2009-07-13 | Little clean-up in parser | Petri Lehtinen | 1 | -10/+15 | |
Before, json_loads checked for '[' or '{' at the beginning. Now there's a dedicated function for that: parse_json(). Also rename parse() to parse_value(). | |||||
2009-07-13 | Unify naming in parser | Petri Lehtinen | 1 | -74/+73 | |
No functional changes. | |||||
2009-07-13 | Make the lexer not depend on locale | Petri Lehtinen | 1 | -8/+12 | |
... by not using isalpha() and isspace(). While at it, fix some other minor things. | |||||
2009-07-09 | Don't dump extra spaces when indenting | Petri Lehtinen | 1 | -2/+1 | |
2009-07-09 | Add some tests | Petri Lehtinen | 15 | -1/+487 | |
2009-07-09 | Fix dumping of Unicode control codes | Petri Lehtinen | 1 | -13/+33 | |
Inside strings, All UTF-8 characters except for \, " and Unicode control codes are dumped as-is. The control codes that have a special one-character escape use that escape, and other control codes are dumped using the \uXXXX escape. | |||||
2009-07-04 | Fix number tokenizer | Petri Lehtinen | 1 | -7/+12 | |
2009-07-04 | Fix empty array dumping | Petri Lehtinen | 1 | -1/+1 | |
2009-07-04 | strbuffer: Optimize string termination | Petri Lehtinen | 2 | -6/+5 | |
Do not zero all of the memory, just the first unused byte to make the string null terminated. | |||||
2009-07-04 | Separate integers and real numbers | Petri Lehtinen | 4 | -32/+117 | |
2009-06-30 | Use -Werror | Petri Lehtinen | 1 | -1/+1 | |
2009-06-30 | Fix json_loadf and json_loadfd with empty input | Petri Lehtinen | 4 | -14/+22 | |
Nothing was appended to strbuffer, so the buffer was left empty. An empty strbuffer is not an empty string but NULL, so the result was a segfault. This patch fixes the problem by initializing strbuffer to an empty string. | |||||
2009-06-30 | Print correct error message on premature end of array | Petri Lehtinen | 1 | -14/+16 | |
2009-06-15 | Fix json_set_error | Petri Lehtinen | 1 | -1/+4 | |
Both error->line and error->text were set improperly, sigh. | |||||
2009-06-15 | Don't use AM_MAINTAINER_MODE | Petri Lehtinen | 1 | -1/+0 | |
2009-06-15 | Add TODO | Petri Lehtinen | 1 | -0/+18 | |
2009-06-15 | Fix a few memory leaks in json_parse_object() | Petri Lehtinen | 1 | -1/+5 | |
2009-06-15 | Implement json_load, json_loadf and json_loadfd | Petri Lehtinen | 2 | -10/+114 | |
2009-06-13 | strbuffer_value: Return a read-only pointer rather than duplicating the value | Petri Lehtinen | 3 | -4/+4 | |
2009-06-13 | strbuffer: Allocate enough space for value initially | Petri Lehtinen | 1 | -1/+1 | |