Merge pull request #4837 from FedericoCeratto/patch-16
Add few JSON examples
This commit is contained in:
commit
d5ec9ba099
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue