Category "serialization"

Object is nothing after json deserialization

I want to deserialize a json file into 'Artikelstammdaten' and afterwards to a list of 'Artikelstammdaten' (don't know how to iterate over the deserialized json

Deserialize array that was Serialized with BinaryFormatter, without using BinaryFormatter to deserialize

BinaryFormatter is now obsolete for security reasons. Unfortunately, there is a ton of old legacy records that were serialized to array using the BinaryFormatte

Deserialize array that was Serialized with BinaryFormatter, without using BinaryFormatter to deserialize

BinaryFormatter is now obsolete for security reasons. Unfortunately, there is a ton of old legacy records that were serialized to array using the BinaryFormatte

How to make a Generic Type Serializable API Model?

When i using Retrofit2, I wanna to trying to convert JSON to Object in Kotlin. I have no idea how to generate it to an Object. My Api Response Json [ {

Un-escape specific characters when serializing to JSON in C#

I have a simple task which is to unescape an apostrophe when serializing to JSON using System.Text.JSON: using System; using System.Text.Encodings.Web; using Sy

"is not registered in resolver" exception when serializing with abstract class using MessagePack

Trying to serialize componentMappers . The Exception is throwed at .Serialize(): var componentMappers = new Bag<ComponentMapper>(); var componentMappersS

Exclude inner class fields using JsonInclude.Include.NON_DEFAULT

@JsonInclude(JsonInclude.Include.NON_DEFAULT) I have a nested class structure as follows: public class A{ String z; String y; float p; List<B>

Should I pass async function to passport.deserializeUser()?

I am using passport to handle user authentication. During initialization, I have to do the following for managing the session cookies: passport.serializeUser((u

Retrieval after serialization to disk using gob

I have been learning about databases and wanted to implement one as well for learning purposes and not for production. I have a defined schema: type Row struct

Accessing html elements with $refs returns different than document.getElementById()

I have two components, A and B. Component A has a programatically generated svg that is appended to a div that has (ref="graph"). Component B has a link that up

How do I fix a NotSerializable exception

I have a program called Agent that launches a thread called BeaconSender: public class BeaconSender extends Thread { private Beacon beacon; private

Jackson serialization/deserialization problems when using @JsonTypeInfo. Can someone explain to me how this is working?

Say I have these classes public abstract class Shape {} public class Circle extends Shape{ private int r; ... } public class Main { public static

LEMON Graph library: Inheritance in Maps

in my PhD project, I want to create a graph using LEMON. The graph itself is directed and hierarchical meaning that the graph has a tree-like shape. The leaves

Using an annotation to Serialize Null in Moshi with nested Event

I am attempting to add a custom annotation to serialize specific values in my model to null when calling the toJSON method from Moshi. I have something working

Deserializing a struct with custom data types

I am trying to #[derive(Deserialize, Serialize)] some structs that involve other custom structs, so I can transform them in and out of JSON, for example: #[deri

DRF --405 Method not allowed for update operation

I have done this before and may be it did work properly that time but now suddenly it's not working as it's expected to be. The viewset.py: class ProfileView

Django dumpdata serializing an int as string

I've been trying to make a custom class/type, defined in a separate db.py file, to be properly serialized as an int when doing a manage.py dumpdata command, but

Why am I getting a JsonDecodingException exception in kotlinx.serialization?

I'm trying to create a custom deserializer using kotlinx.serialization but when I deerialize a JSON payload with null parameters, an exception kotlinx.serializa

How to serialize multi-types Collection with IXmlSerializable

I'm writing an xml that seem decent to me but i have issue reading into last collection. Xml <SWorkspace Title="Default" NosWorkSpaceGuid="69c4d731-a44d-4

Laravel trying to save $appends attributes

I am coding on Laravel 6, and stumbled up on this problem. I have accessors for a field that i need in my model in some cases, but it does not exist in my datab