Upon receiving a web request for a JavaScript file, a JavaScript Snippet was retrieved as the response that needs to be parsed in C#.
The snippet contains data like:
sDt[1647110]=['SVK U19 A','D43A71','Jupie Podlavice Badin(U19)','TJ Straza(U19)','','',' / '
,'','',114745,114746,1,'',0,0,0,1012,1,'','',''];sDt[1647108]=['SVK U19 A','D43A71','Kysucke Nove Mesto(U19)',
'MFK Lokomotiva Zvolen(U19)','','',' / ','','',114741,114742,1,'',0,0,0,1012,1,'','',''];
sDt[1647109]=['SVK U19 A', /* Many more similar entries followed by */ ;WLID[1623901]=1;
WLID[1623902]=1;WLID[1623903]=1;WLID[1637686]=1;
WLID[1637692]=1;WLID[1637687]=1;WLID[1637688]=1;WLID[1637685]= /* ending with */
var ORD = [1647110,1647108,1647109,1647133,1645669,1647122,1626152,1647251,1646643,
1647130,1646685,1 ... ];
This doesn't conform to a standard JSON array format. The challenge is to parse this efficiently. Initially, an attempt was made using String.Split, which proved to be slow and unstable.
The goal is to extract the array behind each sDt[Identifier] along with its corresponding Identifier using Json.Net, while disregarding other elements like WLID or var ORD.
If you have any suggestions on how to tackle this problem efficiently, please share. Your help is much appreciated!