serialization Questions

10

I am faced with a problem that gives me this error: A circular reference has been detected when serializing the object of class "App\Entity\User" (configured limit: 1) I have an Enterpr...
Concede asked 10/12, 2019 at 13:34

4

I'm learning DRF and feel confused a little now. I set up QuestionView and QuestionSerializer like this. views.py class QuestionView(viewsets.ModelViewSet) : queryset = models.Question.objects....

2

Solved

so trying to understand how I can make testing ktor app with testcontainers this is my code package com.app import com.app.base.db.DbFactory import com.app.features.auth.RegisterDTO import com.app...
Drugget asked 6/6, 2022 at 16:8

10

Solved

With a simple class/interface like this public interface IThing { string Name { get; set; } } public class Thing : IThing { public int Id { get; set; } public string Name { get; set; } } Ho...
Tubate asked 15/6, 2013 at 12:49

13

Solved

I have a binary file. I don't know how it's formatted, I only know it comes from a delphi code. Does it exist any way to analyze a binary file? Does it exist any "pattern" to analyze and deseri...
Stabler asked 22/6, 2009 at 8:24

3

I have a simple usage of Serializable on a data class @Serializable data class Message( val type: String, val topics: List<String>, val content: String ) but the IDE shows the following w...
Thiamine asked 14/7, 2023 at 5:40

1

Solved

I am trying to serialize an event object to produce a kafka event. All the code of the proyect can be found here: https://github.com/Gaboxondo/springBootCQRSExample When I try to publish the event ...
Vendue asked 27/4 at 9:4

5

Solved

I am using the Django REST Framework 2.0. Here is my model class: class Mission(models.Model): assigned_to = models.ForeignKey('auth.User', related_name='missions_assigned', blank = True) Here ...
Purgation asked 16/5, 2013 at 13:40

3

As per the definition of "default" attribute in Avro docs: "A default value for this field, used when reading instances that lack this field (optional)." This means that if the corresponding fiel...
Flitting asked 26/2, 2018 at 9:59

5

Solved

From the Python documentation: By default, the pickle data format uses a relatively compact binary representation. If you need optimal size characteristics, you can efficiently compress pickled ...
Gyrostatic asked 18/9, 2019 at 0:14

11

I am developing a mobile project made with Flutter. This project need to connect to some servers for REST consumption services (GET, POST, PUT, DELETE, ...), and retrieve data as well as send data ...
Tipster asked 22/3, 2019 at 19:39

11

Solved

I am getting the following error: Converting object to an encodable object failed: Instance of 'Patient' #0 _JsonStringifier.writeObject (dart:convert/json.dart:674) #1 _JsonStringifier.writeList ...
Woodcut asked 10/4, 2018 at 12:15

2

Solved

I want to serialize object in c# and learn that we can do this both JsonSerializer and JsonConvert. I know about documentation knowledges about these. But I want to know which is better to u...
Ichthyology asked 12/8, 2016 at 10:12

4

Solved

Apache Avro provides a compact, fast, binary data format, rich data structure for serialization. However, it requires user to define a schema (in JSON) for object which need to be serialized. In ...
Keown asked 9/4, 2014 at 6:18

4

Solved

It's well known that runtime will genereate serialVersionUID field for your class, if you failed to explicitly define it. But is it possible to get this value in runitme? Is it possible in runtime...
Selfimmolating asked 4/3, 2014 at 10:27

7

I have a rather large dict (6 GB) with a structure along the lines of: {((('word','list'),(1,2),(1,3)),(...)):0.0, ....} and I need to do some processing on it. I'm trying out several document clu...
Adelaadelaida asked 20/5, 2009 at 22:2

16

Solved

What is meant by "object serialization"? Can you please explain it with some examples?
Enactment asked 15/1, 2009 at 18:32

12

Solved

Instead of this: JsonSerializerOptions options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase // etc. }; var so = JsonSerializer.Deserialize<SomeObject>(som...
Garber asked 10/10, 2019 at 21:42

4

There are many posts about creating Jackson serializers for numbers, currency, etc. For engineering applications, there is often a need to set the precision on numbers based on the units or other c...
Cavernous asked 22/5, 2017 at 10:31

7

I have a C++ STL map, which is a map of int and customType. The customType is a struct, which has string and a list of string, How can i serialize this to a file. sample struct: struct customType{ ...
Furnishings asked 14/11, 2011 at 12:15

8

I have a class that looks like class MyClass { private byte[] payload; public MyClass(){} @JsonCreator public MyClass(@JsonProperty("payload") final byte[] payload) { this.payload = payload...
Tipple asked 8/10, 2018 at 19:20

3

I am trying to figure out how to pass a variable declared on the server side of my nextjs 13 app into a client side function that I have declared in one of my component files. As you can see in my ...
Controvert asked 16/4, 2023 at 17:42

26

Solved

Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not declare a static final serialVersionUID field of type long What is serialVersionUID and why is...
Freezing asked 12/11, 2008 at 23:24

3

When I try to serialize an exception using json.dump, I get errors like TypeError: IOError('socket error', error(61, 'Connection refused')) is not JSON serializable and TypeError: error(61, 'Co...
Mudskipper asked 21/7, 2017 at 14:44

7

Solved

Why does my custom Exception class below not serialize/unserialize correctly using the pickle module? import pickle class MyException(Exception): def __init__(self, arg1, arg2): self.arg1 = arg1...
Covell asked 26/4, 2013 at 20:44

© 2022 - 2024 — McMap. All rights reserved.