Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

I'm using Spring MVC and I would like to control the deserialization of Date objects in RequestBody. I saw I can set a custom JsonDeserializer in the input object, but I would like to set a global ...
Tobia's user avatar
  • 9,595
0 votes
1 answer
126 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
-3 votes
1 answer
67 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
0 votes
1 answer
203 views

I want to use JSON to serialize and deserialize a complex Python object. This Python object contains other Python objects that may be implementations of a protocol or descend from a common abstract ...
Green 绿色's user avatar
  • 3,203
1 vote
2 answers
107 views

I am trying to load data from Java object streams from another application. Since I do not have access to the source code of that application, I used jdeserialize to extract the class definitions from ...
uli's user avatar
  • 71
0 votes
1 answer
99 views

I'm trying to set up a Spring Authorization Server for learning purposes. The login and consent screens work, but after I approve the consent screen and submit the /authorize request, I get the ...
Gaurav Kumar's user avatar
1 vote
1 answer
80 views

I'm trying to serialize and compress a std::map using Boost. Here's the serialization code: #include <boost/archive/binary_oarchive.hpp> #include <boost/iostreams/filtering_stream.hpp> #...
Setu's user avatar
  • 1,086
2 votes
0 answers
113 views

I use pydantic to be able to serialise and deserialise json data stored in a large database. Each of these json strings represent a pydantic model MyModel. class MyModel(BaseModel): attr1: int I ...
A-Abe's user avatar
  • 75
2 votes
2 answers
198 views

I have a class BaseClass that during runtime will store a reference to another object Thing. BaseClass is meant to be extensible so I've made it abstract like so: abstract class BaseClass{ // see ...
Andorrax's user avatar
  • 123
1 vote
0 answers
60 views

I need to deserialize a JSON data containing list of players into a regular List<> type (in C#). My code is: public async Task<Player2> RetrievePlayerListFromServer() { ...
Krzysztof Tanaś's user avatar
1 vote
2 answers
202 views

I am trying to include the Spring4D framework in my latest Delphi project. The collection functions for sorting and filtering are the main features. However, I have great difficulty to serialize a ...
Edward's user avatar
  • 309
2 votes
0 answers
86 views

So I have a class that implements a JavaFX ObservableMap which maps Integers to a generic type T, and I want to serialize that, but it happens that this is an abstract class and what I will in fact ...
Satoshi's user avatar
  • 23
1 vote
1 answer
147 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
3 votes
1 answer
4k views

I am trying to use a pytorch model present on this link: https://drive.google.com/drive/folders/121kucsuGxoYQu03-Jmy6VCDcPzqlG4cG since it is used by this project I am trying to run: https://github....
rikyeah's user avatar
  • 2,118
0 votes
1 answer
72 views

I'm using Blazor wasm with .Net 8 and the Kontent.Ai.Delivery package and I'm trying to integrate caching into the system. One problem I'm facing is, after I store the data as json in cache, I can't ...
Đức Thành Nguyễn's user avatar
0 votes
0 answers
59 views

I have code that has two warnings. The code is from a commandline Expense manager project that uses a List to save and access expenses. Saving and retrieving the List is done via serialisation and ...
Andruid929's user avatar
0 votes
1 answer
118 views

How can I force serde to parse a JSON Number as a Rust u16 type? Below I parse a JSON file. json_data is of type Value. This only has a as_u64() method, no as_u16(). As a result I first have to parse ...
Baldrick's user avatar
  • 11.2k
0 votes
0 answers
72 views

I have pydantic model as below. from typing import Annotated from bson import ObjectId from pydantic import Field from pydantic import EmailStr from pydantic import BaseModel from pydantic import ...
NPatel's user avatar
  • 21.4k
2 votes
0 answers
49 views

I'm working on serializations and need to make some benchmarks on Apache Thrift. But I have very long serialization times. Compared to Protobuf, I have more than 100x average times. What am I doing ...
Kuvalya's user avatar
  • 1,116
0 votes
1 answer
170 views

In a C# .Net application, is BinaryFormatter used to deserialize resource image data embedded in the application via .resx files and Resource Explorer? I've been handed a .Net application and the task ...
Matt's user avatar
  • 447
6 votes
1 answer
89 views

I am interested in methods for serializing and deserializing a binary tree in breadth-first order. The first part, serialization, is equivalent to performing a levelorder traversal where we preserve ...
Brendan Langfield's user avatar
0 votes
1 answer
754 views

I have an API in Spring Boot. In the controller layer, any POST that has a custom object annotated with @RequestBody flags Snyk security findings in the security pipeline. For example: public ...
Ddeokbokki's user avatar
0 votes
0 answers
26 views

In Loading a DataSet from XML, I've found the following statement: If you call ReadXml to load a very large file, you may encounter slow performance. To ensure best performance for ReadXml, on a ...
exaiwitmx's user avatar
  • 119
0 votes
1 answer
73 views

private <T> T convertByteInDataForObject(ByteString data, Class<T> toType) { byte[] bsonBytes = data.toByteArray(); ByteBuffer byteBuffer = ByteBuffer.wrap(bsonBytes); ...
faisal pathan's user avatar
0 votes
1 answer
47 views

I'm trying to deserialize a GeoJson FeatureCollection contained in a file (.json extension), with contents: { "type": "FeatureCollection", "features": [ { &...
mekoda's user avatar
  • 353

1
2 3 4 5
165