Litt om forskjellen mellom XML og JSON samt bruk av JSON i .Net

by Israr Khan 6. desember 2010 21:49

Gravde frem noen greie artikler om bruk av JSON i .Net, og samtidig leste meg litt opp på forskjeller i bruk av JSON kontra XML.

Sjekk ut:

Litt om forskjellen mellom bruk av JSON kontra XML (Ja - faktisk MSDN ;)

http://msdn.microsoft.com/en-us/library/bb299886.aspx - An Introduction to JavaScript Object Notation (JSON) in JavaScript and .NET

Serialisering/Deserialisering av JSON til CLR objekter:

Json.NET

The Json.NET library makes working with JavaScript and JSON formatted data in .NET simple. Quickly read and write JSON using the JsonReader and JsonWriter or serialize your .NET objects with a single method call using the JsonSerializer.

 Json.NET Download
 Features
 • LINQ to JSON
 • The JsonSerializer for quickly converting your .NET objects to JSON and back again
 • Json.NET can optionally produce well formatted, indented JSON for debugging or display
 • Attributes like JsonIgnore and JsonProperty can be added to a class to customize how a class is serialized
 • Ability to convert JSON to and from XML
 • Supports multiple platforms: .NET, Silverlight and the Compact Framework

http://james.newtonking.com/pages/json-net.aspx - Json.NET
http://json.codeplex.com/ - Json.NET

DataContractJsonSerializer

Serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects

http://pietschsoft.com/post/2008/02/NET-35-JSON-Serialization-using-the-DataContractJsonSerializer.aspx - DataContractJsonSerializer 

Tags: , , , , ,

Asp.Net | Koding

Om meg

Kodeverk.net er drevet av .Net-utvikler Israr Khan.

Han jobber som gruppeleder og  seniorkonsulent for Capgemini Norge.

Hans fokusområder er alt innenfor .Net-verden, og har foreløpig tilgode å finne noe som han ikke finner av interesse innenfor teknologien. Han er drevet av genuin interesse for teknologi og lever for faget.


 

View Israr Khan's profile on LinkedIn

Month List