Skip to main content
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
2 votes
0 answers
85 views

I'm responsible for maintaining a public ASP.NET Core 8 Web API. One endpoint accepts POST data like this: { "xid": 12345, "message": "Hello, world!" } On the ....
Nat Webb's user avatar
  • 738
0 votes
0 answers
47 views

I'm using OpenAPI Generator to generate Kotlin DTOs from an OpenAPI specification. I have a schema where I need to handle two JSON properties that differ only in case: inventoryCharacteristics (...
PaoloAgVa's user avatar
  • 1,501
0 votes
1 answer
110 views

ASP.NET Core Web API endpoint accepts malformed JSON with multiple objects, but only processes the first object, instead of rejecting the request. The API endpoint I'm working on should accept only a ...
Sumrender Singh's user avatar
0 votes
2 answers
66 views

I am learning to use Jackson's custom serialization and deserialization capabilities to handle the DatePair class. I hope to concatenate the fields of DatePair into a single string. Here is a MCVE ...
Guo's user avatar
  • 1,823
0 votes
2 answers
122 views

I have scaffolded an Azure Functions application using .NET 9. The Program.cs file looks like this: using Microsoft.Azure.Functions.Worker; using Microsoft.Azure.Functions.Worker.Builder; using ...
SuperMe's user avatar
  • 113
1 vote
1 answer
150 views

I'm trying to deserialize JSON data into Animal.class and Dog.class which extends Animal.class using custom deserializer. The JSON data below is a simplified one and the real JSON data cannot be ...
evol1102's user avatar
0 votes
0 answers
50 views

I send a JSON message like this to Kafka: `{ "userId": "aa4db80b-a047-4539-8393-f8cd0e9c10e7", "username": "user18", "email": "user18@gmail....
Harsha Dankotuwa's user avatar
1 vote
1 answer
88 views

I would like to write some easy code like: @Serializable data class Mydata(val value: String) val data : Mydata = Json.decodeFromString(rawJson) But how can this be made possible inside a stand-...
Rene's user avatar
  • 4,063
0 votes
0 answers
25 views

I'm adding storage to my python Kivy application. My data involves many enums and nested dictionaries/sets so out-of-the-box, JsonStorage fails with errors like "TypeError: Object of type set is ...
Simone's user avatar
  • 166
0 votes
1 answer
71 views

I'm wanting to only expose a list as ReadOnly but it's, but while trying to accomodate that for Deserialization, it's not currently working. Firstly, to confirm Serialization: { "StartTime"...
MrGreggles's user avatar
  • 6,195
0 votes
1 answer
385 views

I can't catch the error cause. I have used the same procedure with other similar commands using the following tool: transform JSON to RUST Another post takes the problem, but a don't understand the ...
rabolon's user avatar
  • 11
0 votes
1 answer
72 views

Custom @ReadingConverter isn't being triggered but when I was initially implementing this code it worked normally. Configuration class: @Configuration public class ElasticsearchConfig { @Bean ...
solujic's user avatar
  • 1,055
1 vote
1 answer
292 views

I have an issue deserializing a JSON object into my class. I have a class DocumentListByPolicy that is used as a List<> in another class. For the document list, this is my code: namespace ...
JimboJones's user avatar
-1 votes
1 answer
147 views

I have a function that calls API requests, and I want to have each request return its own data type according to its purpose. For that, I created a class called ApiResponse. Here is its code: ...
Avraham Cohen's user avatar

15 30 50 per page
1
2 3 4 5
160