1 | static L jsonDecodeList(S s) {
|
2 | O o = jsonDecode(s); |
3 | if (o instanceof L) |
4 | ret (L) o; |
5 | if (o instanceof Map && empty((Map) o)) |
6 | ret ll(); |
7 | else |
8 | fail("Not a JSON list: " + s);
|
9 | } |
Began life as a copy of #1001918
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: | #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: | 744 / 781 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |