33,544 questions
0
votes
1
answer
151
views
Updating kafka connector throws Schema compatibility exception
I updated the configuration of my connector through Kafka Connect 2.0.0 and got an error.
io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException:
Schema being registered is ...
2
votes
0
answers
64
views
Have different property name for deserialization and serialization using Newtonsoft [duplicate]
I have a class with a public property:
public string Service {set; get;}
I know of the JsonProperty attribute which allows me to map the name of the field in both directions of deserialization and ...
2
votes
3
answers
162
views
Why does an inherited class not get JSON serialized correctly?
I want to create a JsonSerializable class, that I can inherit from. See this code:
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
public interface IJson
{
string ...
0
votes
0
answers
69
views
kotlinx.serialization.SerializationException: Serializer for subclass 'ParcelableDate' is not found in the polymorphic scope of 'Parcelable'
I'm trying to find a way to use Android Compose SafeArgs Navigation.
My class involes a date. I'm currently
@Parcelize
@Serializable
data class ModelExerciseEvent(
val id: Int? = null,
val ...
1
vote
1
answer
183
views
Problem with serializing object structure with Newtonsoft Json.NET
I have to serialize a data structure for a 3rd-party interface either to XML or to JSON. The expected result should look like the following (simplified) example:
XML:
<?xml version=\"1.0\"...
0
votes
0
answers
79
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 ...
0
votes
0
answers
35
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 ...
1
vote
1
answer
56
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 ...
-2
votes
1
answer
78
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 ...
0
votes
0
answers
36
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 ...
1
vote
1
answer
77
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 ...
0
votes
0
answers
37
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, ...
0
votes
1
answer
62
views
Serialize array of nested objects in flutter
Flutter App, API backend exchanging array of nested objects in JSON format.
Setting up JSON serialization / deserialization with the following articles, using json_serializable:
https://docs.flutter....
0
votes
0
answers
42
views
Unarchived objects with NSKeyedUnarchiver not matching
My problem is that I need to archive/unarchive a custom class from AppAuth library and I will need to compare the results of such process at a point to determine if there was change in the object or ...
0
votes
1
answer
63
views
spring boot reading dynamic data with inheritance
Tried to use Spring Boot to load the different DataType
PLAIN_TEXT_INPUT("plain_text_input"),
RADIO_BUTTONS("radio_buttons"),
CHECKBOXES("checkboxes"),
...
0
votes
0
answers
72
views
pydantic get field alias based on field value with python object
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 ...
1
vote
2
answers
92
views
django rest framework, how to override a field so that "null is zero"
Hello I have a Model with a field that is not null on the database -the field "amount". However on the api-level this field can be skipped, which should then be stored as the default value.
...
1
vote
1
answer
31
views
Problem updating integer field in Supabase from kotlin APP
I'm trying to update an int4 field on supabase, but nothing happens when the code runs. The updates in the when block for OnCallDates, GymCallDates and LeaveDates work perfectly, even in the else ...
0
votes
0
answers
65
views
Serializing DataSet to json in .NET Core
We are moving to .NET Core and it seems that the following produces an XML, not JSON:
// ds is DataSet
var data = JsonConvert.SerializeObject(ds, Formatting.None);
If I use this, I get a cycles ...
0
votes
1
answer
179
views
How to serialize Free-monad based DSLs?
There is a previous question with no answer Serialize a program written in a free monad?
Is there a canonical way to serialize Free-monad based DSLs? Or is the answer that create a second data type ...
0
votes
0
answers
169
views
How to automatically add all derived types (by convention) to the JsonDerivedType list in .NET 9
I have a base class which I'm using JsonDerivedType to do serialization / deserialization of derived types. Works nicely.
However, rather than having to add the JsonDerivedType attribute explicitly ...
0
votes
1
answer
39
views
Django API JSONfield fetches an object that I can't use .map to parse and then build a chart
I have a Django serialized API field that contains database JSONfield data that creates a chart (this data is confirmed to work on my Flask backend), but I can't use the same data taken from a Django ...
0
votes
1
answer
54
views
Serialising/deserialising class with a abstract base loses value with Newtonsoft and System.Text.Json
I'm trying to serialise and deserialise a servicebus event class, my event inherits from an abstract base with a generic parameter for the payload, and my base class implements an interface.
No matter ...
0
votes
1
answer
457
views
How to fix: could not resolve io.confluent:kafka-avro-serializer:7.8.0
I keep getting could not resolve the artifact. I have gone through all the confluent documentation and checked a lot of answers on stack overflow and none of the approaches suggested was able to help ...
1
vote
1
answer
65
views
kotlin why multiple elvis operator didn't return default value but null
I have a data class:
data class Example(
@SerializedName("id")
val id: String,
@SerializedName("url")
val url: String,
@SerializedName("more")
val ...