Click here to Skip to main content
15,945,119 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi, I have a simple datatable that converts to the following json string when using fastjson :
txtJSon = {"$types":{"fastJSON.DatasetSchema, fastJSON, Version=, Culture=neutral, PublicKeyToken=null":"1"},{"$schema":"$type":"1","Info":["","Id","System.Int32","","Description","System.String","","BaseCurrenciesId","System.Int32","","ExternalBanks","System.Boolean"],"Name":""},"":[[3,"Barclays",139,true]]}

If I want to take the above json string and convert back to datatable using code :
where dt = datatable 
dt = fastJSON.JSON.Instance.ToObject(txtJSon)
dt = fastJSON.JSON.Instance.Parse(txtJSon)

I get the following error :
Could not find token at index 108.

Please assist.
Andy Fensham
Updated 14-Mar-12 20:06pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900