Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
26 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
0 answers
54 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
2 votes
1 answer
148 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
3 votes
0 answers
90 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
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
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
0 votes
1 answer
38 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
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
1 vote
1 answer
183 views

I have to serialize a data structure for a 3rd-party interface either to XML or to JSON. The expected result should look like the following (simplified) example: XML: <?xml version=\"1.0\"...
Michael Hartmann's user avatar
0 votes
0 answers
36 views

For the following code (.net fiddle here) I'm coming across a deserialisation issue. public static void Main() { var beef = new Beef() { Porks = [ ...
zXynK's user avatar
  • 1,380
-1 votes
1 answer
81 views

I have the following json string: { "tables": [ "%USER%.ABCDE_FAC_FINAL_%YEAR%", "%USER%.ABCDE_FAC_STAGE_%YEAR%", "%USER%....
Mark Ainsworth's user avatar
0 votes
1 answer
98 views

I'm updating a C# addin for Sparx EA to generate JSON schema's from a model. One of the changes is to allow the option to choose for the version 2020-12: "$schema": "https://json-schema....
Geert Bellekens's user avatar
0 votes
0 answers
60 views

I expected this code to throw an Exception because I am trying to deserialize a string value into a boolean property. However, I was surprised to find that Json.NET happily converts the string value ...
srk's user avatar
  • 1,971
1 vote
1 answer
46 views

Given a C# object graph composed of subclasses of types which we cannot modify directly, what is the best strategy to serialize that object to JSON in .NET 4.6.2 while ignoring certain members of some ...
Brian Sweeney's user avatar
0 votes
1 answer
525 views

I'm currently working on a small client-side webapp using Avalonia and WebAssembly, specifically https://github.com/TheRealQuantam/ZeldaMusicRandomizer (Visual Studio 2022, in C#, with .NET 8.0 and ...
Justin Olbrantz's user avatar
1 vote
1 answer
78 views

I have a package of records for serialising and deserialising published in a private GitHub Repo for my project. Within one of them are a number of Enums. I am working with a GraphQL backend, and in ...
Martyn C's user avatar
  • 1,161
1 vote
1 answer
122 views

In our C# application on .NET 4.8, we tried to use a PopulateObject for deserializing data returned from an API. This API is not under our control. Now the API developer added a new enum value and ...
Marcel Grüger's user avatar
0 votes
0 answers
71 views

I have a client winform application originally targeting .NET framework 4.8 that I have upgraded to .NET 8. The client sends the class to a local server MVC.3 api that saves the entity to the server. ...
Haim Katz's user avatar
  • 461
1 vote
0 answers
35 views

I'm trying to parse this Json file with Newtonsoft parser (v13.0.0.0): { "version": { "elements": [ { "key": "DateGenerated&...
user2148983's user avatar
0 votes
2 answers
84 views

I'm trying to save strokes and children from a WPF InkCanvas. I managed to get the file to save, but now I can't load it. It throws this exception: Newtonsoft.Json.JsonSerializationException HResult=...
Michał Wyszyński's user avatar
1 vote
1 answer
122 views

I have a .NET Core GraphQL backend service consumed in a Blazor web assembly app with a GetData GraphQL query with an enum like this: public enum SomeEnumTypes : byte { None, First, ...
Ali Khan's user avatar
  • 501
-1 votes
1 answer
108 views

Having to decode an unusually-formatted JSON array, where instead of being an array, the contents are complete objects: { "133v1": { "128": "2024-01-24", ...
Coyttl's user avatar
  • 534
0 votes
1 answer
53 views

I am trying to serialise a DataSet (working with an old codebase and have to use a DataSet in this instance). I want to slim down the resulting JSON and remove null values and defaults (0 for int, ...
Peter's user avatar
  • 349
-1 votes
2 answers
69 views

I receive a Json file. Now the other company change the Json and I have to find the right format for my class in C.Net and I'm not able to do so. My Json looks like : { {"xxx": [ "...
baronming's user avatar
  • 258
0 votes
1 answer
83 views

I'm doing a basic serialize / deserialize with $type included to implement the outbox pattern. however I'm getting the default values. Here's the code serializing : JsonConvert.SerializeObject(...
Sulabee's user avatar
  • 23

1
2 3 4 5
282