Skip to main content

Questions tagged [serialization]

Serialization is the process by which data-structures are converted into a format that can be easily stored or transmitted and subsequently reconstructed.

1 vote
1 answer
21 views

Serialising a model with signals in Angular 18

I'm trying to serialise a model object to local storage (or IndexedDB), however it contains signals. // An example of the model I'm dealing with export class ExampleModel { canSerialise = "&...
Jarno's user avatar
  • 111
0 votes
0 answers
11 views

Trying to deserialize class with Font and get : Deserialization of types without a parameterless constructor

Using System.Text.Json, I have a class with some properties including System.Drawing.Font properties. There's no problem serializing it, but i can't deserialize it. I Get the error Deserialization of ...
RPAlbert's user avatar
  • 121
0 votes
0 answers
6 views

YamlDotNet - how to handle versioning after object update?

I'm using YamlDotNet in my projects for quite a while, though I could use your help with the following issue I'm facing as one of the projects is evolving. Imagine I'm serialising the following ...
Mike's user avatar
  • 1,300
0 votes
0 answers
14 views

Store/load Scikit Learn objects (Pipeline, ColumnTransformer) without different version considerations?

I need to be able to somehow store and reload a Scikit Learn pipeline in a way that breaking changes between different Scikit Learn versions aren't as much of a concern as they are when I use e.g. ...
Hendrik Wiese's user avatar
0 votes
0 answers
25 views

How to read `DeclaringType` from `JsonPropertyTypeInfo` in System.Text.Json?

I want to customize serialization based on the type of the property. To do that I would like to read DeclaringType from JsonPropertyInfo. This is an example from Microsoft documentation on how to ...
Ilya Chernomordik's user avatar
1 vote
1 answer
33 views

How to serialize into a specific format

Using YamlDotNet, how to serialize a byte[] like that [49,20,50]? The yaml file I need is: device: name: device1 key: [49,20,50] I have tried: Defined the key as byte[], however, the ...
Romer's user avatar
  • 71
2 votes
1 answer
29 views

"'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete" -- best practice for implementing exceptions?

I wrote an Exception subclass in my C# project targeting .NET 8.0, and the template in the IDE automatically filled in the familiar serialization constructor (the one that takes SerializationInfo and ...
Jonathan Gilbert's user avatar
0 votes
0 answers
10 views

Want to use two instances of Objectmapper, one to use for custom masking logging, other to be used for api response

Want to use two instances of Objectmapper, one to use for custom masking logging, other to be used for api response.. Basically, I want masking in logs, which should be annotation based on properties, ...
Rupmalya Ghosh's user avatar
0 votes
1 answer
34 views

django-rest-framework-datatables server side FieldError: Cannot resolve keyword '0' into field

I have followed the docs from here: https://django-rest-framework-datatables.readthedocs.io/ I am getting this error: django.core.exceptions.FieldError: Cannot resolve keyword '0' into field. Choices ...
riccoding's user avatar
0 votes
0 answers
16 views

Getting serialization plugin error using compose navigation

I need a little help. I'm trying to use the new type-safe compose navigation. It was working perfectly until I tried passing String arguments between destinations. I'm getting an error displayed on ...
koma222's user avatar
  • 11
0 votes
0 answers
17 views

Unable to fetch the TypeInformation of this org.apache.iceberg.io.WriteResult. When using the Iceberg's FlinkSink in Iceberg stream sink

Currenly i am ingesting data into iceberg using the Flink Iceberg sink library. I am using the FlinkSink class to write the data into iceberg. For the performance reason i have disabled the kryo ...
Xavier Fernandis's user avatar
0 votes
0 answers
57 views

Serializer not returning expected output in .NET Core

I have a controller which returns Task<ActionResult> which internally returns a List<CustomObjectA>. The structure of CustomObjectA is like this: [DataContract] public class CustomObjectA {...
Sarthak Agrawal's user avatar
0 votes
1 answer
70 views

C++ Best Practices: Serialization and Abstract Classes without library access

Preface: Serialization libraries cannot be used due to restrictions in the development environment, and the latest version usable is C++ 11. I have various struct that need to be serialized and ...
cma0014's user avatar
  • 1,547
0 votes
0 answers
25 views

Partial interception of default XML serialization C#

I am trying to create an XML object serialization base class to accumulate a bunch of stuff that I've learned over the past few years, to have a ready to use example whenever I need it. I want to add ...
Elias Verstappe's user avatar
0 votes
0 answers
38 views

Alternative For Type.IsSerializable

We used in an application if (!value!.GetType().IsSerializable) return; In the meantime the IsSerializable property is obsolete (Formatter-based serialization is obsolete and should not be used.)....
mburm's user avatar
  • 1,493

15 30 50 per page
1
2 3 4 5
2232