anyone know which is better (setup, usage, flexibility, performance) obviously in your personal opinion/experience
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m personally a fan of Json.NET for the reason that it handles date serialization correctly using
DateTimeOffsetinstances. From my experience, neither theDataContractJsonSerializerclass nor theJavaScriptSerializerclass handle this situation correctly; they both assume it is not a scalar type and make a mess of those instances by trying to export all the properties of the object (when in reality it should be serialized as a call tonew Date...).I also like that you an work with JSON data dynamically using Json.NET. That’s a massive boon if you aren’t working with statically typed data.