This question already has an answer here:
- Parsing json array using json.net 1 answer
I am geting Javascript array as a result from webrequest which need to be converted/parsed to C# object for further handling. Any suggestion of .NET library or this need to be done by regex? Thank you?
<script>
{
item = new Array();
item [0] = new Array();
item [0][0]='value01';
item [0][1]='value02';
item [1] = new Array();
item [1][0]='value10';
item [1][1]='value11';
item [2] = new Array();
item [2][0]='value10';
item [2][1]='value11';
}
</script>
I know that the above code looks like JSON but, I have it as a part of a received html code. Therefore I think I need to parse it in traditional mannor.