Add few JSON examples

This commit is contained in:
Federico Ceratto
2016-09-29 15:56:22 +01:00
committed by GitHub
parent 12eb5540f3
commit 5e4708ef3b

View File

@@ -24,6 +24,8 @@
## jobj["test"] = newJFloat(0.7) # create or update
## echo($jobj["test"].fnum)
## echo($jobj["key2"].bval)
## echo jobj{"missing key"}.getFNum(0.1) # read a float value using a default
## jobj{"a", "b", "c"} = newJFloat(3.3) # created nested keys
##
## Results in:
##