Category "json.net"

Could not load Newtonsoft.Json. Issue with .net framework / core / standard versions

[EDIT 3: bottom line, this stuff can work but is fragile. take a false step and VS will pull in undesired versions. Be prepared to backup, undo changes, and tr

Unexpected character encountered while parsing value

Currently, I have some issues. I'm using C# with Json.NET. The issue is that I always get: {"Unexpected character encountered while parsing value: e. Path '',

Not allowed to load local resource:

i want to stream online videos ..but i am facing j query error Not allowed to load local resource: ...i find many solution but that all did not work for me. he

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

Can I Deserialize a specific field from JSON?

I am writing a method that takes a British post code and returns the Latitude and Longitude of this postcode as a "Location" object. public class Location {

Json.NET: how to remove assembly info from types in the resulting json string?

I am serializing using Json.NET, but the resulting string ends up way too long, because it includes a ton of surplus info about the assembly that I have no use

.NET NewtonSoft JSON deserialize map to a different property name

I have following JSON string which is received from an external party. { "team":[ { "v1":"", "attributes":{ "eighty_min_

JSON file as database

I'm tring to use a JSON file as database for static content in ASP.net (an image gallery). Everything works well: I can read the file and retrieve data and disp

.net Core 3 [JsonIgnore] not working when requesting single resource

in my .net Core 3.0 Api the [JsonIgnore] Attribute is not working as excepted. Im using System.Text.Json instead of the old Newtonsoft.Json When i'm using my

Newtonsoft Json Error converting value {null} to type 'System.Int32'

When performing an AJAX request I am getting the following error: Error converting value {null} to type 'System.Int32'. Path '[5].tabID', line 1, position 3

Deserialized Object Has All Values Set to Null

I'm trying to deserialize JSON into a custom object but all my properties are set to null and not sure what's going on. Does anyone see anything wrong? JSON Ex

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using Facebook; using Newtonsoft.Json; namespace facebook { class Pro

What is the correct way to force JSON.Net to escape forward slash (solidus) characters?

So for business reasons I need to force JSON.NET to escape a JSON blob like so: { url: 'http://some.uri/endpoint' } As { "url": "http:\/\/some.uri\/endpoint

how to convert an array of objects to json

I have an array of objects. now I want to convert them to json. var dd =new MyUser[10]; for (int i = 0; i < 10; i++) { Debug.Log

How to add an extra property into a serialized JSON string using json.net?

I am using Json.net in my MVC 4 program. I have an object item of class Item. I did: string j = JsonConvert.SerializeObject(item); Now I want to add an extr