Most voted "json.net" questions
14 questions
Sort by count of
-
16
votes3
answers8395
viewsDeserialize JSON Array in an Object Array
Good afternoon, I decided to ask because I’ve been holding on to this for three days and as much as I’ve looked, I haven’t found a solution to my problem. Access a Web Service via C#, Httpclient,…
-
11
votes3
answers5878
viewsCreating a List<> from a Json C#
I have a doubt regarding JSON, I have the following JSON: { "jsonrpc":"2.0", "result":{ "nr":26, "lista":[ { "codigo":"2", "nome":"Pratos Quentes", "foto":"./images/cupcake.png" }, { "codigo":"3",…
-
2
votes2
answers310
viewsJson Array for C#string array
I just need to get the names of the moderators and viewers of this json: { "_links": {}, "chatter_count": 16, "chatters": { "moderators": ["gumagames", "juliavidoto", "nightbot", "pinkpanthersz_",…
-
2
votes1
answer96
viewsHow to read one struct inside another with Json.Net?
I need the program to read this information: {"kiseryota":{"id":15031780,"name":"Kise Ryota","profileIconId":1374,"summonerLevel":30,"revisionDate":1475089675000}} Here’s what I’m doing: Structure:…
-
2
votes1
answer32
viewsHow to add a certain value to an Integer of a JSON in Vb.net?
Hello, I have this code: Imports System.IO Imports Newtonsoft.Json.Linq Public Class Form1 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Dim channel As JObject =…
-
1
votes1
answer60
viewsHow to ignore an error using Json.NET without damaging what has already been read
Is there any way to continue the "de-realization" of an object, using Json.NET, even when a property is corrupted and without damaging what has already been "read"?…
-
1
votes1
answer165
viewsWebapi problem when trying to Deserialize object with property of the same type (circular reference)
I’m doing some tests with WebAPI, to see how it behaves with circular reference, and found a curious case. Model [DataContract(IsReference = true)] public class Pessoa { [DataMember(EmitDefaultValue…
-
1
votes1
answer496
viewsMap class with json.net
Is there any way to map the properties name of a class without using the Annotation JsonProperty of Json.NET? The following structure shows two classes that inherit from the Bar class. However, the…
-
1
votes1
answer132
viewsHelp in VB.NET using Newtonsoft.Json
Hello, I have this code: Imports System.IO Imports Newtonsoft.Json.Linq Public Class Form1 Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick Dim channel As JObject =…
-
1
votes2
answers263
viewsHow to enter data with JSON and MVC5
I have a registration screen, where the user can insert as many emails as he wants in each record. For this, in my View I have the following code <div class="form-group"> <button…
-
1
votes1
answer45
viewsDeserialize for an Icollection without the need to create an extra class
Hello. I am using Json.NET to deserialize my object. Today I do it as follows: JsonConvert.DeserializeObject<ICollection<TModelo>>(stream.ReadToEnd()); Currently I have to create an…
-
0
votes1
answer239
viewsC# - Decode JSON array
I need to get the id of that code JSON using C#: [{"nome":"Gabriel Ferreira","cidade":"São Paulo","uf":"SP","id":"4274892"}] Can someone advise me how I can do this in the best way, because I’ve…
-
0
votes1
answer77
viewsI cannot use Jsonconverter in Json.Net with Unity
So I’m developing a visual programming system in FSM, and for serialization, I used Json.Net, until then, all right, it worked correctly, however, I had to serialize UnityObjects And things got…
-
-1
votes2
answers75
viewsHow to serialize or deserialize a json with lowercase keys and uppercase values (newtonsoft)
I have the following JSON string example: : { myproperty : 'Hello' } When I desiccate you or serialize you, I want you to stay that way: { myproperty : 'HELLO' } All values in Uppercase and All Keys…