Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
46 views

TypeError: Object of type ndarray is not JSON serializable despite custom converter (Nested Dict/NumPy 2.0)

I am working with simulation results stored in a deeply nested defaultdict structure. This structure (data_to_save) mixes standard Python types (lists, ints, floats, None) with NumPy arrays. I need to ...
STATTHINGY TRENTON's user avatar
0 votes
0 answers
32 views

Enum Mapping in Oat++ DTOs Causing Runtime & Compile-Time Errors

I'm using Oat++ with custom enums for serializing/deserializing in DTOs and integrating them with a MySQL connector. I'm facing issues when mapping enums to/from JSON and database fields. I've tried ...
Aditya Hagawane's user avatar
0 votes
0 answers
87 views

How to Extract Data from Java Drag-and-Drop into PySide2 Application

I have a Java GUI application with a treeView widget, where drag-and-drop is already enabled. I drag an item from the treeView and try to drop it into another application built using Python and ...
Purushottam's user avatar
0 votes
0 answers
18 views

Trix editor in Vue app not serializing attachment captions unless manually "committed"

I'm using the Trix editor in a Vue.js application and running into an issue with image attachments and captions not being properly serialized when saving a comment. When I insert an image attachment ...
Syed Abdullah's user avatar
-1 votes
0 answers
39 views

(De)Serialize enum into Object dictionary using Newtonsoft.Json [duplicate]

I am surprised I haven't been able to see this answered, but probably my search questions have been wrong. I have the following setup: public class Setup { public Dictionary<string, object> ...
Joost Jens's user avatar
-1 votes
1 answer
36 views

FluentAssertions - Should().BeEquivalentTo() reports different length on equal strings

In a unit test, I am comparing JSON output from a serialization operation. It's very simple, I just compare raw strings with each other. Now, the strings do visually match, but my testing framework, ...
Marcel's user avatar
  • 15.8k
1 vote
1 answer
38 views

Mongo linq query ignores custom serialization of linq argument using linq provider v3

Issue We have a custom serializer for an enum (MeasurementValueType), which stores the enum as a string in MongoDB and deserializes it from a string back into the enum when querying. The enum ...
SJFJ's user avatar
  • 677
0 votes
0 answers
17 views

Kivy JsonStore: can you customize its encoder that converts data structures to/from .json format?

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
-2 votes
1 answer
62 views

In go, how can I flatten a map when serializing? [duplicate]

I have a go codebase full of structures that look like type MyStruct struct { SomeField int SomeField2 string // ... SomeMap map[string]SomeOtherStruct } and I need to serialize this to ...
Yoric's user avatar
  • 4,099
2 votes
5 answers
124 views

How do I byte-serialize Vector2[]?

I'm starting with serialization in C# and am a bit confused about how ISerializable works. I have something like [Serializable] public class MyClass : ISerializable { public enum MyEnum {FIRST, ...
SK19's user avatar
  • 189
0 votes
0 answers
27 views

Flask and Flask Session, using a ad-hoc decode/encode (eg. with msgpack)

I would like to explicitly tell to flask-session how to encode / decode some instances from classes that are specific to my application. (This is legacy code, I can not change the classes). For ...
julienla's user avatar
0 votes
0 answers
29 views

JsonInclude.Include.NON_EMPTY Doesn't Work after I implemented custom serializer on an attribute

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
1 vote
1 answer
56 views

I need a dotnet C# XML Serializer like XSerializer 0.1.28 for List<T> A and List<T> B elements serialized with the same name

This demo code showcases how the XSerializer 0.1.28 works but it's deprecated and new libraries do not allow Serializing an Array as a Sequence of Elements for multiple lists with the same serialized ...
Adam Mendoza's user avatar
  • 5,935
1 vote
1 answer
33 views

Boost serializing wrapper class to XML without nesting

I have made a class that wraps boost::uuids::uuid. Now I want to insert the the wrapped value into an XML using boost::archive::xml_oarchive. The following minimal example does that: #include <...
seht97's user avatar
  • 91
0 votes
0 answers
20 views

ChronicleMap custom serialisers exception SizeMarshaller is it aliased?

This is characteristic only if a custom serializer is present. After the ChronicleMap is created, the process writes the data and closes the Map (using the close() method). However, after restarting, ...
OlegSOM's user avatar

15 30 50 per page
1
2 3 4 5
2237