Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
73 views

Everything works as expected until the json string is deserialized after the post back. Class: public class RegretLetterDetail { public int PositionID { get; set; } [Display(Name = "...
Danie Schoeman'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
0 votes
1 answer
112 views

Classes having JsonView annotated attributes provide different generated serializers with jackson reflect free optimization in quarkus. I have the following attribute enabled in our project. quarkus....
Gautam Lihala's user avatar
0 votes
0 answers
39 views

I have a class which has Include.NON_EMPTY configuration on class level. @JsonInclude(value = JsonInclude.Include.NON_EMPTY) public class Item extends ExtraInfo { String id; List<String> ...
Jaydip Bari's user avatar
0 votes
0 answers
87 views

I'm building an ASP.NET Core Web API for AOT publishing and need to configure source-generated JSON serialization for it, as reflection-based serialization will not work for AOT. According to ...
Daniil Palii's user avatar
  • 1,295
0 votes
0 answers
282 views

I need to use traditional POCO mapping to jsonb with PostgreSQL and EF Core (.net 8). The structure of those classes in fairly complex and I don't need to query them with Linq to EF. But I need to be ...
ZorgoZ's user avatar
  • 3,758
0 votes
1 answer
302 views

I need to use Newtonsoft JSON serializer for all calls made via Flurl 4.0 (or at least for all calls made by a specific Flurl client), but I cannot figure out how to set it up. From the answer to the ...
Alek Davis's user avatar
  • 10.8k
0 votes
1 answer
42 views

I have a JSON object as: {"username":"johndoe","email":"[email protected]", "secretToken":"token123","secretKey":"password&...
jgp's user avatar
  • 2,101
0 votes
0 answers
59 views

I have an API endpoint to pull a big JSON blob from one of my models, and it works, but I'd like to improve it. The current implementation is below, and mostly just works using built in associations. ...
valenumr's user avatar
0 votes
0 answers
96 views

I am working with RapidJSON and trying to serialize a rapidjson::GenericDocument object using rapidjson::PrettyWriter to a rapidjson::GenericStringBuffer. Here is the relevant part of my code: typedef ...
manjuv's user avatar
  • 347
0 votes
0 answers
103 views

In my ASP.NET Core project, I have a custom type which needs to be serialized using some external service: public struct MyCustomType { private int value; public MyCustomType(int value) { ...
Ozren Kinkela's user avatar
0 votes
1 answer
79 views

I am using Windows Communication Foundation classes to serialize and deserialize classes to and from JSON in files via the DataContractJsonSerializer class. I know there are better ways to serialize ...
bchase's user avatar
  • 61
2 votes
1 answer
344 views

I am using JsonConvert.SerializeObject method to serialize this object: var objx = new JsonObject { ["prob1"] = new JsonObject { ["phone"] = "1019577756", ...
MrMustafa022's user avatar
1 vote
1 answer
580 views

In Visual Studio, if I create a new project using the "Azure Functions" template, the JSON serialization used by that function will be different depending on which version of the template I ...
Richardissimo's user avatar
0 votes
2 answers
372 views

I'm working on a CustomClaimsProvider, although for the purposes of this question, all that matters is that it's an Azure Function with an HTTP trigger. The code here is based on the example code in ...
Richardissimo's user avatar
0 votes
2 answers
546 views

I have model classes ClassA and ClassB. These classes are returned as result from two controllers: XController and YController. When returning these classes as result from YController, default ...
markvgti's user avatar
  • 4,629
1 vote
1 answer
302 views

In my project, the server returns the empty object while I have checked that this.taskGateway.RetrieveSelection returns the correct data: [ApiController] public class TaskController : ControllerBase { ...
Takeshi Tokugawa YD's user avatar
-2 votes
3 answers
606 views

I have a C# class like the following: public class FunctionCall { public string x {get; set;} public int y {get; set;}; public object obj1 {get; set;}; public object obj2 {get; set;};...
Sergio B.'s user avatar
  • 1,008
3 votes
2 answers
5k views

How do I write (serialize) a float to JSON with fixed 2 decimals using System.Text.Json? Like {"Amount": 12.30}. Not like {"Amount": 12.3} or {"Amount": 12.3001} or {&...
Tuomas Hietanen's user avatar
0 votes
1 answer
77 views

I am not getting "parent" field in response. If I remove @JsonBackReference annotation, the recursion will begin. I need to get parent object 1 time without recursion. @Getter @Setter @...
Muhammad Zohaib's user avatar
1 vote
1 answer
481 views

In flutter I have a simple JSON serializable class for a location with just an ID and a name like this: import 'package:json_annotation/json_annotation.dart'; part 'locations_data.g.dart'; @...
MisterMirko's user avatar
0 votes
1 answer
446 views

I am trying to use @Expose with an alias name for properties of a class as below but I am getting the response in camelCase. import { Expose } from 'class-transformer'; import { BaseResponse } from './...
girish's user avatar
  • 311
0 votes
0 answers
449 views

I'm new to hugging face and hugsvision. I'm trying to push a custom Vision Transformer (ViT) model to the Hugging Face Hub. I've defined a custom configuration using ViTConfig, but I get this error ...
Reza's user avatar
  • 1
0 votes
1 answer
39 views

I have some data from the bind grid view and I want to display them in a serialized format. Right now I have a nested array where the above parent is serialized correctly but the child array has ...
Salaj Subedi's user avatar
0 votes
0 answers
39 views

I am having the following UserDto class: part 'user_dto.freezed.dart'; part 'user_dto.g.dart'; @freezed abstract class UserDto implements _$UserDto { const factory UserDto({ required String ...
SRel's user avatar
  • 423

1
2 3 4 5
7