1

I was using JavaScriptSerializer to handle JSON serialization, but because of some unforeseen problems (my bad luck) I have to use something else.

All I need from serializer looks lie this:

string json = "..."
JavaScriptSerializer ser = new JavaScriptSerializer();
Dictionary<string, Object> o = ser.Deserialize<Dictionary<string, Object>>(json);

So I end up with a dictionary that contains other dictionaries/arrays/objects that represents json hierarchical structure. I already have a code that does some analysis on data structured like that, and I don't want to change that part.

Which JSON parser for C# can provide such functionality?

1
  • did u found one? would u plz share? Commented Oct 11, 2011 at 15:38

1 Answer 1

1

you can use json.net or fastjson opensource libraries to perform this task in a faster and more efficient way than using the built in .net serializer.

json.net - http://json.codeplex.com/

fastJson - http://www.codeproject.com/Articles/159450/fastJSON

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.