¡@

Home 

c# Programming Glossary: json.net

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

hashtables Parse JSON array c# asp.net json parsing json.net share improve this question Update I've just realized why..

Why does one use dependency injection? [closed]

http://stackoverflow.com/questions/14301389/why-does-one-use-dependency-injection

configuration is magically serialized into a class using json.net sometimes using an XML serializer . I don't quite understand..

Deserializing JSON data to C# using JSON.NET

http://stackoverflow.com/questions/2546138/deserializing-json-data-to-c-sharp-using-json-net

Staff employeeid 999777666 sn Johnson c# json json.net deserialization share improve this question Use JsonConvert.DeserializeObject..

How to convert datatable to json string using json.net?

http://stackoverflow.com/questions/2979922/how-to-convert-datatable-to-json-string-using-json-net

to convert datatable to json string using json.net How to convert datatable to json using json.net Any suggestion..... using json.net How to convert datatable to json using json.net Any suggestion... I ve downloaded the necessary binaries..... last sb.Append return sb.ToString Now i thought of using json.net but dont know where to get started.... c# json datatable json.net..

How to convert c# generic list to json using json.net?

http://stackoverflow.com/questions/3482261/how-to-convert-c-sharp-generic-list-to-json-using-json-net

to convert c# generic list to json using json.net I am converting my datatable to c# generic list. DataTable.. .ToList Now how can i convert this list to json using json.net Any suggestion. Sample of json format should be like this Table.. empId 2 reportingto chendurpandian c# json generics list json.net share improve this question Here's one example using System..

Parsing JSON using Json.net

http://stackoverflow.com/questions/401756/parsing-json-using-json-net

this all makes sense any ideas c# parsing serialization json.net share improve this question I don't know about JSON.NET but..

deserializing JSON to .net object using NewtonSoft (or linq to json maybe?)

http://stackoverflow.com/questions/4749639/deserializing-json-to-net-object-using-newtonsoft-or-linq-to-json-maybe

albums 0 cover_image_url stream.Close c# json linq json.net deserialization share improve this question If you just..

Deserializing JSON when sometimes array and sometimes object

http://stackoverflow.com/questions/5224697/deserializing-json-when-sometimes-array-and-sometimes-object

my converter Thanks for any help. c# json facebook c# sdk json.net share improve this question The developer of JSON.NET ended..

Casting interfaces for deserialization in JSON.NET

http://stackoverflow.com/questions/5780888/casting-interfaces-for-deserialization-in-json-net

if it matters my app is written in .NET 4.0. c# .net 4.0 json.net share improve this question @SamualDavis provided a great..

how to deserialize JSON into IEnumerable<BaseType> with Newtonsoft JSON.NET

http://stackoverflow.com/questions/6348215/how-to-deserialize-json-into-ienumerablebasetype-with-newtonsoft-json-net

it complains that BaseClass is abstract. Thanks c# json.net newtonsoft share improve this question you need new JsonSerializerSettings..

Json.NET: Deserializing nested dictionaries

http://stackoverflow.com/questions/6416017/json-net-deserializing-nested-dictionaries

to be deserialized to Dictionary s c# json serialization json.net deserialization share improve this question I found a way..

How to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects

http://stackoverflow.com/questions/8030538/how-to-implement-custom-jsonconverter-in-json-net-to-deserialize-a-list-of-base

method implementation in JsonConverter right. c# json json.net deserialization newtonsoft share improve this question Using..

Json.NET: convert JSON string to XML or XML to JSON string

http://stackoverflow.com/questions/814001/json-net-convert-json-string-to-xml-or-xml-to-json-string

a string in JSON to XML format and viceversa c# xml json json.net share improve this question Yes. Using the JsonConvert class..

How to create a JSON.NET Date to String custom Converter

http://stackoverflow.com/questions/8639315/how-to-create-a-json-net-date-to-string-custom-converter

send the value as day month year string on response. c# json.net share improve this question Something like this string str..

Cannot deserialize JSON array into type - Json.NET

http://stackoverflow.com/questions/9452901/cannot-deserialize-json-array-into-type-json-net

Line 1 position 1. c# .net json serialization json.net share improve this question You have to write a custom JsonConverter..

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

for my ASP.NET page so I've been recommended to give JSON.NET a try. Could anyone point me in the right direction to just..

How to Convert JSON object to Custom C# object?

http://stackoverflow.com/questions/2246694/how-to-convert-json-object-to-custom-c-sharp-object

this question A good way to use JSON in C# is with JSON.NET Quick Starts API Documentation from JSON.NET Official site help.. in C# is with JSON.NET Quick Starts API Documentation from JSON.NET Official site help you work with it. An example of how to use..

Deserializing JSON data to C# using JSON.NET

http://stackoverflow.com/questions/2546138/deserializing-json-data-to-c-sharp-using-json-net

JSON data to C# using JSON.NET I'm relatively new to working with C# and JSON data and am.. am seeking guidance. I'm using C# 3.0 with .NET3.5SP1 and JSON.NET 3.5r6. I have a defined C# class that I need to populate from..

How to decode OAuth 2.0 for Canvas signed_request in C#?

http://stackoverflow.com/questions/3433252/how-to-decode-oauth-2-0-for-canvas-signed-request-in-c

should help you out.. Note The JObject reference is from JSON.NET available via http james.newtonking.com projects json net.aspx.. using System.Text using Newtonsoft.Json.Linq JSON.NET project Code public Dictionary string string DecodePayload string..

Parsing JSON using Json.net

http://stackoverflow.com/questions/401756/parsing-json-using-json-net

json.net share improve this question I don't know about JSON.NET but it works fine with JavaScriptSerializer from System.Web.Extensions.dll..

Deserializing JSON when sometimes array and sometimes object

http://stackoverflow.com/questions/5224697/deserializing-json-when-sometimes-array-and-sometimes-object

deserializing data returned from Facebook using the JSON.NET libraries. The JSON returned from just a simple wall post looks.. json.net share improve this question The developer of JSON.NET ended up helping on the projects codeplex site. Here is the..

Casting interfaces for deserialization in JSON.NET

http://stackoverflow.com/questions/5780888/casting-interfaces-for-deserialization-in-json-net

interfaces for deserialization in JSON.NET I am trying to set up a reader that will take in JSON objects.. and translate them into C# objects. I am currently using JSON.NET for the deserialization process. The problem I am running into.. Thingy. They must be an interface. I've been poring over JSON.NET's documentation for a while now and the questions I could find..

Turn C# object into a JSON string in .NET 4

http://stackoverflow.com/questions/6201529/turn-c-sharp-object-into-a-json-string-in-net-4

uses a namespace that's not in .NET 4. I also heard about JSON.NET but their site seems to be down at the moment and I'm not keen..

How to parse json in C#?

http://stackoverflow.com/questions/6620165/how-to-parse-json-in-c

improve this question I am assuming you are not using JSON.NET. If this the case then you can try it . It has the following..

Make ASP.NET WCF convert dictionary to JSON, omitting “Key” & “Value” tags

http://stackoverflow.com/questions/7590088/make-asp-net-wcf-convert-dictionary-to-json-omitting-key-value-tags

using only built in ASP.NET tools i.e. I'd rather not use JSON.NET if it's avoidable Thanks very much c# asp.net wcf json rest..

How to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects

http://stackoverflow.com/questions/8030538/how-to-implement-custom-jsonconverter-in-json-net-to-deserialize-a-list-of-base

to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects I am trying to..

How to create a JSON.NET Date to String custom Converter

http://stackoverflow.com/questions/8639315/how-to-create-a-json-net-date-to-string-custom-converter

to create a JSON.NET Date to String custom Converter Could someone tell me please.. how I can create a custom converter I know I can use JSON.NET ISODateConvertor but what I want is specific I just want to..

How to parse JSON without JSON.NET library?

http://stackoverflow.com/questions/9573119/how-to-parse-json-without-json-net-library

to parse JSON without JSON.NET library I'm trying to build a Metro application for Windows.. that I'm having some issues on how to parse JSON without JSON.NET library It doesn't support the metro applications yet . Anyway..

Parse JSON in C#

http://stackoverflow.com/questions/1212344/parse-json-in-c-sharp

require the results ready to print out to the screen Edit Json.NET works using the same JSON and classes as the example above... json Link Serializing and Deserializing JSON with Json.NET Related C# parsing json formatted data into nested hashtables.. ms.ToArray Edit If you want to use Json.NET here are the equivalent Serialize Deserialize methods to the..

How to post an array of complex objects with JSON, jQuery to ASP.NET MVC Controller?

http://stackoverflow.com/questions/320291/how-to-post-an-array-of-complex-objects-with-json-jquery-to-asp-net-mvc-control

Param result JsonConvert.DeserializeObject is from Json.NET Link Serializing and Deserializing JSON with Json.NET share..

Parsing JSON using Json.net

http://stackoverflow.com/questions/401756/parsing-json-using-json-net

Foo foo ser.Deserialize Foo json Edit Json.NET works using the same JSON and classes. Foo foo JsonConvert.DeserializeObject..

deserializing JSON to .net object using NewtonSoft (or linq to json maybe?)

http://stackoverflow.com/questions/4749639/deserializing-json-to-net-object-using-newtonsoft-or-linq-to-json-maybe

What JSON library works well for you in .NET?

http://stackoverflow.com/questions/571168/what-json-library-works-well-for-you-in-net

serialization share improve this question I've used Json.NET with success in the past. Example from the site Product product..

Deserialization problem with DataContractJsonSerializer

http://stackoverflow.com/questions/596271/deserialization-problem-with-datacontractjsonserializer

You could use an alternative serializer such as Json.NET which I strongly recommend or JavaScriptSerializer I think it..

Json.NET: Deserializing nested dictionaries

http://stackoverflow.com/questions/6416017/json-net-deserializing-nested-dictionaries

Deserializing nested dictionaries When deserializing an object..

How to parse json in C#?

http://stackoverflow.com/questions/6620165/how-to-parse-json-in-c

converting your .NET objects to JSON and back again Json.NET can optionally produce well formatted indented JSON for debugging..

Json.NET: convert JSON string to XML or XML to JSON string

http://stackoverflow.com/questions/814001/json-net-convert-json-string-to-xml-or-xml-to-json-string

convert JSON string to XML or XML to JSON string I started.. JSON string to XML or XML to JSON string I started to use Json.NET to convert a string in JSON format to object or viceversa. I.. JSON format to object or viceversa. I am not sure in the Json.NET framework is it possible to convert a string in JSON to XML..

prevent property from being serialized in web api

http://stackoverflow.com/questions/11851207/prevent-property-from-being-serialized-in-web-api

api share improve this question ASP.NET Web API uses Json.Net as default formatter so if your application just only uses JSON.. XML format more or only support XML instead of using Json.Net you should use DataContract which supports both JSON and XML..

Parsing ISO Duration with JSON.Net

http://stackoverflow.com/questions/12633588/parsing-iso-duration-with-json-net

GlobalConfiguration.Configuration Despite all this Json.Net cannot parse ISO durations . It throws this error Error converting.. 2008 05 11T15 30 00Z to type 'System.TimeSpan'. I'm using Json.Net v4.5. I've tried different values such as P1M and others listed..

Exclude property from serialization via custom attribute (json.net)

http://stackoverflow.com/questions/13588022/exclude-property-from-serialization-via-custom-attribute-json-net

You have a few options. I recommend you read the Json.Net documentation article on the subject before reading below. The.. method that returns bool based on a naming convention that Json.Net will follow to determine whether or not to serialize the property...

Circular Reference exception with JSON Serialisation with MVC3 and EF4 CTP5w

http://stackoverflow.com/questions/4606232/circular-reference-exception-with-json-serialisation-with-mvc3-and-ef4-ctp5w

to use the out of the box serialiser if possible although Json.Net via nuget is ok as an alternative i would hope its possible..

Using Json.net - partial custom serialization of a c# object

http://stackoverflow.com/questions/5404303/using-json-net-partial-custom-serialization-of-a-c-sharp-object

serialization of a c# object I ma using Newtonsofts' Json.Net to serialize some and array of objects to json. The objects..

Serializing dictionaries with JavaScriptSerializer

http://stackoverflow.com/questions/6416950/serializing-dictionaries-with-javascriptserializer

Although I agree that JavaScriptSerializer is a crap and Json.Net is a better option there is a way in which you can make JavaScriptSerializer..

How to parse JSON to a dynamic object on Windows Phone 7?

http://stackoverflow.com/questions/7626717/how-to-parse-json-to-a-dynamic-object-on-windows-phone-7

phone 7 windows phone 7.1 share improve this question Json.Net http james.newtonking.com pages json net.aspx EDIT If WP7 supports..

Google Maps v3 geocoding server-side

http://stackoverflow.com/questions/7942095/google-maps-v3-geocoding-server-side

Looking for a REST with JSON client library

http://stackoverflow.com/questions/8389420/looking-for-a-rest-with-json-client-library

rest .net 3.5 share improve this question You can use Json.Net library and this extension class that makes use of DynamicObject..

JSON.net - field is either string or List<string>

http://stackoverflow.com/questions/10121804/json-net-field-is-either-string-or-liststring

field is either string or List string I have a situation where.. Justin Bieber Justin Timberlake The question is using JSON.net how can I create a converter that deals with this problem I've..

Circular Reference exception with JSON Serialisation with MVC3 and EF4 CTP5w

http://stackoverflow.com/questions/4606232/circular-reference-exception-with-json-serialisation-with-mvc3-and-ef4-ctp5w

around it by handling the serialization myself using the JSON.net serializer and just returning json strings from my methods... and just returning json strings from my methods. The JSON.net serializer has an option to ignore circular references as json..

Using JSON.net, how do I prevent serializing properties of a derived class, when used in a base class context?

http://stackoverflow.com/questions/5872855/using-json-net-how-do-i-prevent-serializing-properties-of-a-derived-class-when

JSON.net how do I prevent serializing properties of a derived class when.. on the Parent are in fact ChildDetail objects. When I use JSON.net to serialize the Parent they are written out with all of the.. the ChildDetail properties. Is there any way to instruct JSON.net or any other JSON serializer I'm not far enough into the project..

How to implement custom JsonConverter in JSON.NET to deserialize a List of base class objects

http://stackoverflow.com/questions/8030538/how-to-implement-custom-jsonconverter-in-json-net-to-deserialize-a-list-of-base

a List of base class objects I am trying to extend the JSON.net example given here http james.newtonking.com projects json help..

Incremental JSON Parsing in C#

http://stackoverflow.com/questions/9026508/incremental-json-parsing-in-c-sharp

with the JavaScriptSerializer but if you're open to use JSON.net it has a JsonReader that acts much like a DataReader . using..

Passing on variables from ViewModel to another View (MVVMCross)

http://stackoverflow.com/questions/10192505/passing-on-variables-from-viewmodel-to-another-view-mvvmcross

but you can always serialise your own objects using JSON.Net or you can extend the framework it's open source. Please note..

Parsing ISO Duration with JSON.Net

http://stackoverflow.com/questions/12633588/parsing-iso-duration-with-json-net

ISO Duration with JSON.Net I have a Web API project with the following settings in Global.asax.cs..

Generics / JSON JavaScriptSerializer C#

http://stackoverflow.com/questions/304081/generics-json-javascriptserializer-c-sharp

Succinct and light-weight API: REST+JSON in .NET

http://stackoverflow.com/questions/3710635/succinct-and-light-weight-api-restjson-in-net

freedom to either use the JsonDataContractSerializer or JSON.Net to serialize your datacontracts. share improve this answer..

Parsing JSON data with C#

http://stackoverflow.com/questions/4109807/parsing-json-data-with-c-sharp

c# visual studio json share improve this question Try JSON.Net if you have not seen this it should help you. Json.NET library..

DataTable to JSON

http://stackoverflow.com/questions/451460/datatable-to-json

today is if you're still limited to .Net 2.0. Even then JSON.Net has become the goto library for this kind of thing. public static.. the code 'cause really this is ancient. Just go use JSON.Net. c# .net json .net 2.0 datatable share improve this question..

Passing a complex object to a page while navigating in a WP7 Silverlight application

http://stackoverflow.com/questions/4701566/passing-a-complex-object-to-a-page-while-navigating-in-a-wp7-silverlight-applica

set the BasePage.Data to FooData. Have BasePage use JSON.Net to tombstone and zombificate BasePage.Data. On BasePage I've..

Serialize .NET Dictionary<string, string> into JSON Key Value Pair Object

http://stackoverflow.com/questions/5124889/serialize-net-dictionarystring-string-into-json-key-value-pair-object

object in the JSON.Net library when doing your serialization string json JsonConvert.SerializeObject..