]> Pileus Git - ~andy/rhawk/commitdiff
Add usage to json.awk
authorAndy Spencer <andy753421@gmail.com>
Thu, 30 Oct 2014 04:08:37 +0000 (04:08 +0000)
committerAndy Spencer <andy753421@gmail.com>
Thu, 30 Oct 2014 04:08:37 +0000 (04:08 +0000)
json.awk

index 93f6b498c9c277bcaff45551f1d6b3cd599d9102..90bd38f716e5547ebedce02689c802bcf0e7b994 100644 (file)
--- a/json.awk
+++ b/json.awk
@@ -1,3 +1,12 @@
+# usage:
+#      @include "json.awk"
+#      BEGIN {
+#              src["hello"] = "world"
+#              json_save("test.json", src)
+#              json_load("test.json", dst)
+#              print dst["hello"]
+#      }
+#
 # value:
 #      object: { string : value, .. }
 #      array:  [ value, .. ]