Topic
  • No replies
KhandekarAkram
KhandekarAkram
14 Posts

Pinned topic How to split multilevel json array

‏2013-03-14T14:07:53Z |
I am running extractors by using the Jaql Text Analytics module. I have got the results similar to below.

{
"Event1": [
{
"company1_text": "xyz Ltd",
"company2_text": "ABC",
"match_text": " xyz Wachs acquired ABC”
},
{
"company1_text": "ASDF",
"company2_text": "ZXCV",
"company3": span(0,0),
"match_text": " ASDF is buying ZXCV ",
},
"Event2": [],
"Event2": [],
“text”: “xyz Ltd acquired ABC. ASDF is buying ZXCV. “
}
I want to store the Event1 part in a variable (say event1var) and others at other variables (say event2var and event3var). I simply want to split the events from other events.

Can anyone suggests a way for the same.
warm Regards,

Akram.