Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1012411 // Test jsonEncode (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (2111L/13K).

!7

p-tt {
  set jsonDecode_useOrderedMaps;
  wordWrapConsole();
  O data = litorderedmap("hello" := "world",
    "number" := 123,
    "very true" := true,
    "not true" := false,
    "list" := ll(456, "yes", litorderedmap("submap" := "yo"))
  );
  S encoded;
  print(encoded = jsonEncode(data));
  assertEquals(encoded, jsonEncode(jsonDecode(encoded)));
  print("OK");
}

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: 428 / 883
Version history: 4 change(s)
Referenced in: [show references]