Download Jar. Libraryless. Click here for Pure Java version (2111L/13K).
1 | !7 |
2 | |
3 | p-tt { |
4 | set jsonDecode_useOrderedMaps; |
5 | wordWrapConsole(); |
6 | O data = litorderedmap("hello" := "world", |
7 | "number" := 123, |
8 | "very true" := true, |
9 | "not true" := false, |
10 | "list" := ll(456, "yes", litorderedmap("submap" := "yo")) |
11 | ); |
12 | S encoded; |
13 | print(encoded = jsonEncode(data)); |
14 | assertEquals(encoded, jsonEncode(jsonDecode(encoded))); |
15 | print("OK"); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012411 |
Snippet name: | Test jsonEncode (OK) |
Eternal ID of this version: | #1012411/5 |
Text MD5: | 60cacf0088602101389d3a0e145c08bb |
Transpilation MD5: | b35892ce79cb924552058a4c36cb906f |
Author: | stefan |
Category: | javax / json |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-02 12:22:58 |
Source code size: | 387 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 557 / 1179 |
Version history: | 4 change(s) |
Referenced in: | [show references] |