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

9
LINES

< > BotCompany Repo | #1008308 - jsonDecodeList

JavaX fragment (include)

static L jsonDecodeList(S s) {
  O o = jsonDecode(s);
  if (o instanceof L)
    ret (L) o;
  if (o instanceof Map && empty((Map) o))
    ret ll();
  else
    fail("Not a JSON list: " + s);
}

Author comment

Began life as a copy of #1001918

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1008308
Snippet name: jsonDecodeList
Eternal ID of this version: #1008308/2
Text MD5: 5919982cf047b60cc5b2b1681dc80f53
Author: stefan
Category: javax / json
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-07 02:15:10
Source code size: 198 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 273 / 303
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1008308 & http://1008308.tinybrain.de