Petri Lehtinen
492feb26ce
Document json_object_seed()
2014-02-11 09:38:45 +02:00
Petri Lehtinen
67a7bc7376
doc: Set all memory to zero in secure_free
2013-11-14 08:49:16 +02:00
Petri Lehtinen
e4d6a9f6f4
Add versionadded to the new json_pack() format specifiers
2013-09-23 09:34:28 +03:00
Petri Lehtinen
9f9c9fe410
doc: Fix index type for json_array_foreach()
2013-09-19 21:26:46 +03:00
Petri Lehtinen
24c67966aa
Mention success first in json_load_callback_t docs
2013-09-16 08:49:38 +03:00
Phillip Howell
0747d3943f
Clarified json_load_callback_t return value docs
2013-09-16 08:49:38 +03:00
Petri Lehtinen
3196ad48ed
pack: Add format specifiers s#, + and +#
2013-08-14 21:54:11 +03:00
Petri Lehtinen
49ad5328c7
doc: Add an example for circumventing problems with Windows heaps
2013-08-06 08:12:20 +03:00
Petri Lehtinen
8490e377c0
Make the argument of json_deep_copy() const
...
Fixes #126 .
2013-07-08 12:36:56 +03:00
Petri Lehtinen
a38704df58
Fix indentation in docs
2013-06-12 08:30:28 +03:00
Jason Choy
120a90a155
Using jsonp_strtod instead of casting to double to catch double overflow
2013-06-11 15:09:08 +01:00
Jason Choy
c3e9725f02
Changed :versionadded for JSON_DECODE_INT_AS_REAL docs
2013-06-11 12:31:41 +01:00
Jason Choy
02a3829363
Renamed flag to JSON_DECODE_INT_AS_REAL and added documentation
2013-06-11 12:24:28 +01:00
Daniel Griscom
b49280be72
Fixed "comparison between signed and unsigned" warning
2013-05-12 15:45:33 -04:00
Daniel Griscom
e8c812b500
Added test cases and documentation for json_array_foreach()
2013-05-12 15:34:26 -04:00
Andrei Epure
f675514815
jansson:doc: modified incref doc
...
Signed-off-by: Andrei Epure <epure.andrei@gmail.com>
2013-04-29 15:32:52 +03:00
Petri Lehtinen
bbd3b0ca4f
Fix a typo
2013-04-01 14:41:10 +03:00
Petri Lehtinen
597423ea80
doc: Add versionadded directive for json_boolean()
2012-09-22 14:25:29 +03:00
Petri Lehtinen
23d563434a
Fix a typo on doc/apiref.rst
2012-09-06 12:06:41 +03:00
Petri Lehtinen
b6a1d8cfd4
Add json_boolean() macro
...
Mostly for symmetry reasons. Makes it easier e.g. to:
int ok = 0;
if(something)
ok = 1;
json_object_set_new(obj, "ok", json_boolean(ok));
Fixes #86 .
2012-07-30 07:20:37 +03:00
Petri Lehtinen
a501a39626
Document the JSON_ESCAPE_SLASH encoding flag
2012-06-29 13:32:17 +03:00
Petri Lehtinen
f309e30320
Merge branch '2.3'
2012-04-26 22:09:48 +03:00
Jack Mitchell
233574e8e0
fix slight typo in json_pack apiref example
...
Fixes #73 .
2012-04-26 22:09:29 +03:00
Petri Lehtinen
e8fd3e3085
Document and tweak json_load_callback()
...
Change the return value of json_load_callback_t to size_t, as it's
feels more correct. The callback should return (size_t)-1 on failure.
Issue #57 .
2012-03-26 21:53:21 +03:00
Petri Lehtinen
ac97f6f225
doc: Fix the names of library version constants
...
Fixes #52 .
2012-02-02 17:00:35 +02:00
Petri Lehtinen
6cb14dd337
Add support for optional object keys for json_unpack() and friends
...
Initial patch by Andrew Thompson.
2012-01-26 21:16:36 +02:00
Petri Lehtinen
fa268b5017
Add json_object_update_{existing,missing}
...
Closes #37 .
2012-01-24 21:03:36 +02:00
Petri Lehtinen
a307974731
Implement json_object_foreach()
...
Also change many places to use it internally to replace hand-crafted
iteration.
Closes #45 , #46 .
2012-01-24 21:01:24 +02:00
Petri Lehtinen
f471e63bb3
Write number of bytes read to error position on successful decode
...
Closes #49 .
2012-01-23 21:18:04 +02:00
Petri Lehtinen
68d6410da0
Update the documentation of JSON_DECODE_ANY
2011-11-14 21:10:16 +02:00
Andrea Marchesini
1e36667193
JSON_DECODE_ANY
...
Closes GH-4.
2011-11-14 21:10:09 +02:00
Petri Lehtinen
84f739036d
Documentation fixes
2011-10-04 21:04:56 +03:00
Petri Lehtinen
0f358c8eaa
doc: Add project status to introduction, add portability chapter
...
Move the multithreading-and-setlocale documentation to the new
portability chapter.
Fixes GH-36.
2011-10-03 22:42:39 +03:00
Petri Lehtinen
e4cc77ce52
doc: Clarify the result of 's' format of json_unpack()
...
Fixes GH-31.
2011-09-12 21:22:20 +03:00
Petri Lehtinen
68809cd913
doc: json_dump_callback was added in v2.2
2011-09-02 21:29:01 +03:00
Petri Lehtinen
910fb92267
Merge branch '2.1'
2011-08-08 21:00:47 +03:00
Petri Lehtinen
f241e14cab
doc: Explain the non-constness of the first parameter of json_unpack() et al
...
Fixes GH-30.
2011-08-08 20:59:10 +03:00
Petri Lehtinen
7e9c293986
Merge branch '2.1'
2011-06-30 21:48:51 +03:00
Petri Lehtinen
c7079a25eb
doc: Add documentation for json_dump_callback()
2011-06-30 21:47:37 +03:00
Petri Lehtinen
7fab57dcef
doc: Fix several typos and other little errors
2011-06-30 21:04:49 +03:00
Petri Lehtinen
6e1f4bb560
doc: Clarify that removing from containers decrements the refcount
...
While at it, reword the object iteration protocol description a bit.
2011-06-17 20:53:32 +03:00
Petri Lehtinen
a76ba52f34
Add JSON_DISABLE_EOF_CHECK decoding flag
...
With this flag enabled, the decoder stops after a valid JSON input and
thus allows extra data after it.
Fixes GH-25.
2011-05-29 21:27:15 +03:00
Petri Lehtinen
49fc708d4c
Add JSON_REJECT_DUPLICATES decoding flag
...
With this flag, a decoding error is issued if any JSON object in the
input contains duplicate keys.
Fixes GH-3.
2011-05-15 13:57:49 +03:00
Petri Lehtinen
e9e34f430e
doc: Add "New in version 2.1" notes to new features
2011-05-14 20:52:14 +03:00
Petri Lehtinen
ab723c7fb5
docs: Add a note that object iteration doesn't give any particular order
...
Closes GH-15.
2011-05-14 13:04:35 +03:00
Petri Lehtinen
636d5f60f9
Add JSON_ENCODE_ANY flag to allow encoding any JSON value
...
Closes GH-19.
2011-05-14 12:57:12 +03:00
Petri Lehtinen
b44e2be032
Add json_loadb() for decoding possibly non null-terminated strings
...
Thanks to Jonathan Landis for the initial patch.
2011-04-10 21:01:50 +03:00
Petri Lehtinen
ff26dc60d1
Small documentation tweaks
...
- Capitalize section titles correctly
- Rename "Building on Windows" to "Building on non-Unix systems" and
tweak the text accordingly.
- Remove the "Installing Prebuilt Binaries" section. This info is
better in the web instead, as it may change.
- Mention that Sphinx 1.0 or newer is required.
2011-02-24 22:35:02 +02:00
Petri Lehtinen
58f9d65535
Add lots of tests for pack/unpack code, fix bugs found
...
Closes GH-12.
2011-02-22 19:08:51 +02:00
Petri Lehtinen
a33c3628da
Move json_error_t documentation to its own section
...
json_error_t is used in the decoder and in the pack and unpack API's,
so it's better to have a separate section for it.
2011-02-22 13:53:58 +02:00