i run the example code ,and receive the next text:
AttribInfo
ServiceName: ELEKTRON_DD
ServiceId: 257
Name: JPY=
NameType: 1 (RIC)
Payload: 2081 bytes
FIELD_LIST
FIELD_ENTRY 1/PROD_PERM: 213
FIELD_ENTRY 2/RDNDISPLAY: 153
FIELD_ENTRY 3/DSPLY_NAME: MDM BANK MOW
FIELD_ENTRY 5/TIMACT: 07:31
FIELD_ENTRY 11/NETCHNG_1: 0.17
FIELD_ENTRY 12/HIGH_1: 108.91
FIELD_ENTRY 13/LOW_1: 108.68
FIELD_ENTRY 15/CURRENCY: JPY (392)
FIELD_ENTRY 17/ACTIV_DATE: 24 APR 2018
FIELD_ENTRY 19/OPEN_PRC: 108.69
FIELD_ENTRY 21/HST_CLOSE: 108.70
FIELD_ENTRY 22/BID: 108.87
FIELD_ENTRY 23/BID_1: 108.87
FIELD_ENTRY 24/BID_2: 108.86
FIELD_ENTRY 25/ASK: 108.88
FIELD_ENTRY 26/ASK_1: 108.88
FIELD_ENTRY 27/ASK_2: 108.89
what i want is like JSON format :
{"CURRENCY": "JPY","BID":"108.87","ASK":"108.88"}
I only want the three Fields "CURRENCY ,BID ,ASK", but the parse way is too hard to understand. I don't know how to fix the code.
Would you please give me a simply way to parse the OMMMsg?