From ad4016635c91e20605de07f65fc36e1fce87578a Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Sat, 8 Feb 2014 10:45:25 -0800 Subject: [PATCH] Document the test program --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6cb0061c..ab59a291 100644 --- a/README.md +++ b/README.md @@ -122,3 +122,15 @@ Utility function There is a function json_hash_get that looks up the JSON object hash value corresponding to a C string hash key in a JSON hash object. If the object specified is NULL or not a JSON hash or has no matching key, it returns NULL. + +Test program +------------ + +The jsoncat program reads JSON from the standard input or from +named files and pretty-prints it to the standard output. + +Normally it uses the callback interface to avoid memory overhead. +It has two options: + +* -t reads the whole tree and then prints it +* -i reads incrementally, but still keeps it all in memory.