serialization Questions
4
Solved
I want to use spring-data-redis to caching data in my spring boot app.But it always says cast exception.I googled for some time but have no ideas.Please help me.thanks,any suggestions are greateful...
Strophic asked 5/4, 2017 at 2:52
5
Solved
I have a unsigned char array[248]; filled with bytes. Like 2F AF FF 00 EB AB CD EF .....
This Array is my Byte Stream which I store my Data from the UART (RS232) as a Buffer.
Now I want to convert...
Petrapetracca asked 2/9, 2012 at 22:31
3
Solved
I've worked with PHP for a few years now, but up until now never had a need to deal with serialisation explicitly, only using the $_SESSION. Now I have a project that requires me to manually implem...
Virilism asked 2/2, 2012 at 14:51
5
Solved
Is it possible to get the current user in a model serializer? I'd like to do so without having to branch away from generics, as it's an otherwise simple task that must be done.
My model:
class Ac...
Nutlet asked 14/1, 2015 at 2:16
6
Solved
XmlElement has an "Order" attribute which you can use to specify the precise order of your properties (in relation to each other anyway) when serializing using XmlSerializer.
public class bookingL...
Wristwatch asked 12/4, 2010 at 15:47
3
Solved
I am in the middle of building a cache layer for the Redis DB to my application and I have come to the point where's it's about to take care of arrays.
I wonder if there's any good (high performan...
Monochord asked 20/5, 2010 at 22:11
2
Solved
I have a problem deserializing a JSON file of about 1GB. When I run the following code I get an out of memory exception:
using (FileStream sr = new FileStream("myFile.json", FileMode.Open, FileAcc...
Sharanshard asked 23/11, 2015 at 10:12
3
Solved
I have three different types of objects: RawArticle, RawPatent and RawGrant.
I have great working serializers, whose base class is serializers.ModelSerializer.
If I retrieve a query set of RawArt...
Madai asked 20/1, 2014 at 13:27
3
In my project I need to use Kotlin.Serialization, so by documenting myself I saw how to import the plugin.
In the build.gradle(project) here is the plugins block.
plugins {
id 'com.android.applica...
Greengrocer asked 10/11, 2023 at 12:54
6
Solved
I have an object with the following attributes.
private final String messageBundle;
private final List<String> messageParams;
private final String actionBundle;
private final Map<String, ...
Cartel asked 28/8, 2012 at 14:20
5
Solved
Consider these two classes:
public Class Base {
public string Id {get; set;}
public string Name {get; set;}
public string LastName {get; set;}
}
And the derived class:
public Class Derived :...
Granulation asked 14/9, 2015 at 18:38
7
I just started programming Python. I want to use scrapy to create a bot,and it showed
TypeError: Object of type 'bytes' is not JSON serializable when I run the project.
import json
import codecs...
Spam asked 21/6, 2017 at 16:54
5
Solved
Using the com.fasterxml.jackson.databind.ObjectMapper class(com.fasterxml.jackson.core:jackson-databind:2.9.5) I am trying to deserialize an object of the following class:
class MyClass {
String...
Noelianoell asked 18/7, 2018 at 13:57
2
I am currently using .NET 6 and System.Text.Json for serialization. I am having issues where system.text.json does not deserialize the enum to string properly when I return the response using OkObj...
Jillian asked 6/10, 2022 at 22:3
8
Solved
I am implementing a class to be Serializable (so it's a value object for use w/ RMI). But I need to test it. Is there a way to do this easily?
clarification: I'm implementing the class, so it's tr...
Grog asked 1/10, 2010 at 14:58
16
Solved
I have a simple controller that return a User object, this user have a attribute coordinates that have the hibernate property FetchType.LAZY.
When I try to get this user, I always have to load all ...
Sismondi asked 11/2, 2014 at 17:7
9
Solved
I have the following code for serializing the queryset:
def render_to_response(self, context, **response_kwargs):
return HttpResponse(json.simplejson.dumps(list(self.get_queryset())),
mimetype=&...
Subtype asked 28/5, 2013 at 11:0
6
Solved
How can I elegantly serialize a lambda?
For example, the code below throws a NotSerializableException. How can I fix it without creating a SerializableRunnable "dummy" interface?
public static vo...
Selfdefense asked 2/4, 2014 at 10:2
6
Solved
After a lot of searching I tracked down how to stop java.util.Date fields from being serialised into timestamps when converting to JSON responses in my @RestController.
However I cannot get it to ...
Alleyn asked 16/1, 2015 at 6:56
8
Solved
Are there any means for JSON serialization/deserialization of Typescript objects so that they don't lose type information? Simple JSON.parse(JSON.stringify) has too many caveats.
Or I should use ad...
Weiner asked 28/4, 2013 at 8:38
8
Solved
Is there a way using Jackson JSON Processor to do custom field level serialization? For example, I'd like to have the class
public class Person {
public String name;
public int age;
public int ...
Pyroclastic asked 20/8, 2012 at 23:54
8
Solved
Consider the following enum and class:
public enum State {
OFF,
ON,
UNKNOWN
}
public class Machine {
String name;
int numCores;
State state;
public Machine(String name, int numCores, State...
Landre asked 15/6, 2016 at 11:1
5
Solved
I always had the impression that the JSON serializer actually traverses your entire object's tree, and executes the custom JsonConverter's WriteJson function on each interface-typed object that it ...
Villarreal asked 25/3, 2015 at 21:38
18
Solved
I am using Hotaru CMS with the Image Upload plugin, I get this error if I try to attach an image to a post, otherwise there is no error:
unserialize() [function.unserialize]: Error at offset
T...
Snowman asked 14/4, 2012 at 10:34
2
Why does
pickle.dumps({}.items())
fail with TypeError: can't pickle dict_items objects in Python 3.5.2 but not in Python 2.7.12?
"Pickling" the dictionary with
pickle.dumps({})
works in both...
Matriculation asked 12/2, 2019 at 20:14
© 2022 - 2024 — McMap. All rights reserved.