Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Json namespace missing from Windows Phone 7

During a Mix10 presentation, the presenter (Charlie Kindel) said that when writing Silverlight based apps for WP7 you get all of Silverlight 3.0 with some of Silverlight 4.0 mixed in.

Why then is System.Json missing? It was included in Silverlight 3.0, and is included in Silverlight 4.0.

Windows Phone 7 Class Library Reference

like image 817
mikefrey Avatar asked Mar 18 '10 19:03

mikefrey


People also ask

Is Newtonsoft JSON still supported?

Yet Newtonsoft. Json was basically scrapped by Microsoft with the coming of . NET Core 3.0 in favor of its newer offering designed for better performance, System. Text.

What is System Text JSON?

The System.Text.Json namespace contains all the entry points and the main types. The System.Text.Json.Serialization namespace contains attributes and APIs for advanced scenarios and customization specific to serialization and deserialization.

Should I use System Text JSON or Newtonsoft?

By default, Newtonsoft. Json does case insensitive property name matching during deserialization whereas System. Text. Json does case sensitive matching (with exception in ASP.Net core where you don't need to do anything to achieve behavior like Newtonsoft.


1 Answers

Add a reference to System.ServiceModel.Web as well as the reference to System.Runtime.Serialization and it should work. System.ServiceModel.Web appears to add .JSON to the Serialization namespace.

like image 106
timw Avatar answered Oct 05 '22 23:10

timw