I have a following JSON input.
{
"StartTime": {
"@item": "1",
"#text": "2016/11/21 09:35:25"
},
"Encryption": {
"@item": "1",
"#text": "None"
},
"Duration": {
"@item": "1",
"#text": "13"
},
"DisplayName": {
"@item": "1",
"#text": "80081"
},
"device_id": 1
}
I need to extract fields like below and ignore the rest (@item) from JSON.
device_id = 1
DisplayName=80081
Duration=13
Encryption=None
StartTime="2016/11/21 09:35:25"
Can it be done writing a single Regex to extract all the fields, or do I need to write separate regex for each field in TRANSFORMS.CONF ?
Any example will help.
/Sarfaraj
... View more