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

6
LINES

< > BotCompany Repo | #1000504 // IOIOI: JSON parsing 3 - get field value

IOIOI

In: [["id":"1"]]
Out: [[1]]
In: [["text":"bla your mama\""]]
Out: [[bla your mama"]]
In: [["category":"xy"]]
Out: [[xy]]

Author comment

Began life as a copy of #1000497

download  show line numbers   

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

Comments [hide]

ID Author/Program Comment Date
1037 #738 Solved!

Details:
LSplitInput(splitIdx=1, baseLearner=LCombineTwoFunctions2(stepper=LCombineTwoFunctions2$Stepper(functions={FAfterColon, FUnquote}, i1=10, i2=11), examples={{"id\":\"1\"", "1"}, {"text\":\"bla your mama\\\"\"", "bla your mama\""}}))
2015-08-21 00:18:07  delete 
442 #1000610 Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
In: [["id":"1"]]
Out: [[1]]
In: [["text":"bla your mama\""]]
Out: [[bla your mama"]]
In: [["category":"xy"]]
Out: [[xy]]
}}
2015-08-18 14:41:48  delete 
440 #1000604 (pitcher) 2015-08-18 00:07:22

add comment

Snippet ID: #1000504
Snippet name: IOIOI: JSON parsing 3 - get field value
Eternal ID of this version: #1000504/1
Text MD5: 876c346a5d2e692afa09a133097384c3
Author: stefan
Category:
Type: IOIOI
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-09 18:48:37
Source code size: 125 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 870 / 247
Referenced in: [show references]