Skip to main content

All Questions

Tagged with or
1 vote
1 answer
67 views

I am attempting to code a nested JSON object for an upload API endpoint. I am having issues forming the code for the nested object. When I call the endpoint to post the data to their site, I get a ...
DukeStar's user avatar
0 votes
1 answer
134 views

I have a couple of classes (simplified): internal class OrderItem { public string Name { get; set; } public Order Order { get; set; } } internal class Order { public IReadOnlyList<...
bairog's user avatar
  • 3,539
0 votes
0 answers
57 views

I'm working on a C# program that will integrate with Planning Center's json-api compliant API (docs can be found here.) For (de)serialization purposes, I'm using the JsonApiSerializer library, which ...
In Hoc Signo's user avatar
1 vote
1 answer
118 views

So i have WeaponStats class that contains one of classes that inherit from IDamageType. Fire is empty bacause i didn't receive anything back from game designer and its still empty. But i can add ...
Jariz's user avatar
  • 13
2 votes
1 answer
151 views

I am building an editor script for Unity to import a complicated blueprint JSON asset extracted from another game engine. Some of this data is stored in the keys, meaning I cannot follow a typical ...
RowanofRohan's user avatar
1 vote
0 answers
70 views

I'm using .NET9.0. MRE: public class JTokenEqualityTests { [Fact] public void IntVsJToken_AssertEqual_ShouldFailButDoesnt() { int original = 42; JToken token = JToken....
FluidMechanics Potential Flows's user avatar
3 votes
0 answers
96 views

We have encountered some memory issues when validating JSON. We are using: Newtensoft.Json v 13.0.3 Newtonsoft.Json.Schema 4.0.1 .NET 9.0.304 For validation we have this code: var validationResult = ...
Libor Svoboda's user avatar
2 votes
0 answers
78 views

I'm poking around the documentation, but I'd also want to reach out each to y'all incase there's a known solution to my issue or deserializing a json into different classes. I have items of different ...
Lord Dragon's user avatar
0 votes
1 answer
150 views

We are trying to micro-optimise some parts of our production code and I was expecting that using Arrays would generally be better than Lists in .NET, and most of the times, my benchmarks indicate that....
FluidMechanics Potential Flows's user avatar
2 votes
2 answers
127 views

Preamble: I know about ISerializable deprecation. We have to use it because we have massive legacy codebase for IPC (that uses this interface). We are migrating from .NET Remoting to a crossplatform ...
bairog's user avatar
  • 3,539
3 votes
1 answer
100 views

I have the following class, how can I ignore the Response, if StatusCode == 400? If StatusCode is 400, Response is returned in a different format that doesn't match my APIResponse class and throws an ...
CSharpData's user avatar
1 vote
1 answer
139 views

I need to write a JSON schema file for some request/response structures of an API-project, so that I can use them with "Json.NET Schema". Because some of the objects are used in mutiple ...
Michael Hartmann's user avatar
0 votes
1 answer
42 views

I have a .NET 8 service which uses Hangfire library for async jobs. I have configured Hangfire with PostgreSQL database. I need to check the state of a running job frequently for which I am using the ...
ctor's user avatar
  • 877
2 votes
0 answers
64 views

I have a class with a public property: public string Service {set; get;} I know of the JsonProperty attribute which allows me to map the name of the field in both directions of deserialization and ...
CodeMonkey's user avatar
  • 12.6k
-2 votes
1 answer
95 views

I have a JSON file with nested values, I want to change any value in the file (ex: "supplierIdentifier" value is "002264HAM001" want to replace it to "0194711AMM00". ...
Taoufik Chaieb's user avatar

15 30 50 per page
1
2 3 4 5
940