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 :
C#
txtJSon = {"$types":{"fastJSON.DatasetSchema, fastJSON, Version=1.0.0.0, 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 :
C#
where dt = datatable 
dt = fastJSON.JSON.Instance.ToObject(txtJSon)
dt = fastJSON.JSON.Instance.Parse(txtJSon)

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

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

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