Slightly less wordy name for reading JSON with separators

This commit is contained in:
Eric Fischer
2014-02-07 18:01:18 -08:00
parent 39f9ff3f04
commit 9d31e8a05e
4 changed files with 11 additions and 5 deletions
+7 -1
View File
@@ -59,4 +59,10 @@ Reading JSON streams with callbacks
-----------------------------------
If you are outputting a new stream as you read instead of just looking for the
sub-objects that interest you,
sub-objects that interest you, you also need to know when arrays and hashes begin,
not just when they end, so you can output the opening bracket or brace. For this
purpose there is an additional streaming reader function,
<code>json_read_separators()</code>, which takes an additional argument for
a function to call when brackets, braces, commas, and colons are read.
Other object types and the closing of arrays and hashes are still sent through
the normal return value.