diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-02-25 20:16:58 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-02-25 20:16:58 +0100 |
commit | cce64c335722bbf6bda39a9d8ca74154e0a3ad4c (patch) | |
tree | fafff633f9dc20883f26065c0ddf6528c38e80b3 /tests/stdlib | |
parent | 7177e0058b96a3f737d954ea3b146f4d21469fdf (diff) | |
parent | 5d50cd6c269ff33600ce033797a67fe254159c1b (diff) | |
download | Nim-cce64c335722bbf6bda39a9d8ca74154e0a3ad4c.tar.gz |
Merge pull request #3810 from def-/json-speedup
Use tables instead of seqs for json objects
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tmitems.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stdlib/tmitems.nim b/tests/stdlib/tmitems.nim index 27ff344e5..c713d91a4 100644 --- a/tests/stdlib/tmitems.nim +++ b/tests/stdlib/tmitems.nim @@ -11,7 +11,7 @@ fpqeew [11, 12, 13] [11, 12, 13] [11, 12, 13] -{"key1":11,"key2":12,"key3":13} +11 12 13 [11,12,13] <Students> <Student Name="Aprilfoo" /> @@ -115,7 +115,7 @@ block: var j = parseJson """{"key1": 1, "key2": 2, "key3": 3}""" for key,val in j.pairs: val.num += 10 - echo j + echo j["key1"], " ", j["key2"], " ", j["key3"] block: var j = parseJson """[1, 2, 3]""" |