Merge pull request #4837 from FedericoCeratto/patch-16

Add few JSON examples
This commit is contained in:
Dominik Picheta
2016-09-29 17:35:18 +02:00
committed by GitHub

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:
##