Based on the answer to the other question, it seems that the solution in JSON.Net for cases like this is to use the appropriate J*
type and use their ToString()
and Parse()
methods to work with the JSON string.
For JS lists, the appropriate type seems to be JArray
, not JObject
, which is used for {}
style Javascript objects.
Please note that I know little about JSON.Net, and perhaps there is a different solution which would avoid the need to use Parse()
and ToString()
everywhere. Somebody with a better knowledge of that library might give a better answer.