From: Andy Spencer Date: Thu, 30 Oct 2014 04:08:37 +0000 (+0000) Subject: Add usage to json.awk X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=commitdiff_plain;h=c6a935c7f7fe2d6ce72268f9ecfe5e9469302d0a;ds=sidebyside Add usage to json.awk --- diff --git a/json.awk b/json.awk index 93f6b49..90bd38f 100644 --- 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, .. ]