serialization Questions

2

Solved

I don't understand why my deserialize method is being called so many times. Here's my server.js file var express = require('express'); var app = express(); var passport = require('passport'); var...
Melodymeloid asked 17/3, 2016 at 6:0

5

Solved

Hi all I'm trying to send a javascript object through websockets: the faye-websockets documentation says: send(message) accepts either a String or a Buffer and sends a text or binary message over...
Jaclin asked 23/10, 2012 at 10:39

12

Solved

i tried to Deserialize this string : string _jsonObject = {\"Ad\":{\"Type\":\"Request"\, \"IdAd\":\"[email protected]\", \"Category\":\"cat\", \"SubCategory\":\"subcat\"}, \"Position\":{\...
Nathanialnathaniel asked 17/6, 2014 at 14:7

4

Solved

I have an ArrayList of a class that looks like this: public class Person { String name; String age List<String> education = new ArrayList<String> (); List<String> family = n...
Nighttime asked 3/1, 2020 at 12:39

1

Solved

currently I'm working with FastAPI and pydantic as serializer. Problem is, we're using snowflake id on the server side, which means we need to convert those ids to string before sending to client (...
Fuchs asked 24/5, 2022 at 9:46

4

Solved

I am currently playing around with v3.0.0-alpha-2 of Google Protocol Buffers. As far as I understand v3 removes the required keyword, the extensions keyword and default values for fields to simpli...
Desideratum asked 30/4, 2015 at 9:29

3

Solved

I have written the same API application with the same function in both FastAPI and Flask. However, when returning the JSON, the format of data differs between the two frameworks. Both use the same ...
Fanestil asked 6/10, 2022 at 10:56

3

Solved

I normally use ShouldSerialize to exclude properties that have no data such as array but now, it does not appear to be triggered when I'm only using JSON serializer in .NET Core 3. It was being tri...
Meakem asked 28/12, 2019 at 3:13

7

I used avro-tools to generate java classes from avsc files, using: java.exe -jar avro-tools-1.7.7.jar compile -string schema myfile.avsc Then I tried to serialize such objects to json by Object...
Excise asked 6/9, 2016 at 13:4

6

Solved

I've got a problem with the form.serialize() function in jQuery. When I try to submit my serialized form via AJAX, serialize() only returns me an empty string. Perhaps there's a problem with my HT...
Vociferance asked 28/5, 2011 at 15:27

2

Solved

I have a JSON string that looks like {"code": "FOO"}. Now I want to deserialize this string using kotlinx.serialization. I've tried the following: import kotlinx.serialization.*...
Sidesaddle asked 10/9, 2020 at 8:57

2

I have a org.json.JSONArray that contains JSONObjects and I am trying to map those to a POJO. I know the type of the POJO I want to map to. I have 2 options and I m trying to figure out which is be...

5

Solved

I have a serializer with two attached SerializerMethodField fields: class BentoSerializer(ModelSerializer): zones = SerializerMethodField() lead_zone = SerializerMethodField() def get_zones(se...
Wendall asked 22/6, 2018 at 19:30

41

How can I convert a JavaScript object into a string? Example: var o = {a:1, b:2} console.log(o) console.log('Item: ' + o) Output: Object { a=1, b=2} // very nice readable output :) Item: [o...
Wilfredowilfrid asked 10/4, 2011 at 15:35

5

Solved

I am calculating some very large numbers using Python, and I'd like to store previously calculated results in Berkeley DB. The problem is that Berkeley DB has to use strings, and I have to store a...
Leal asked 12/3, 2012 at 6:44

5

Solved

I can't find "field" listed as a C# keyword anywhere. Does anyone know the background on this?
Dorrie asked 7/1, 2010 at 16:57

8

Solved

I have this API public ActionResult AddDocument([FromBody]AddDocumentRequestModel documentRequestModel) { AddDocumentStatus documentState = _documentService.AddDocument(documentRequestModel, Doc...
Advertisement asked 5/12, 2019 at 15:31

3

Solved

I'm trying to serializing the following C struct struct packet { int id; unsigned char *ce; unsigned char *syms; }; in Python and send it over a socket. The number of elements pointed by ce a...
Furlani asked 30/12, 2015 at 16:36

9

Solved

How can I serialize doubles and floats in C? I have the following code for serializing shorts, ints, and chars. unsigned char * serialize_char(unsigned char *buffer, char value) { buffer[0] = va...
Radian asked 5/8, 2010 at 19:15

11

I'd like a C library that can serialize my data structures to disk, and then load them again later. It should accept arbitrarily nested structures, possibly with circular references. I presume tha...
Slashing asked 16/12, 2008 at 14:0

6

Solved

I'm writing some code to serialize some data to send it over the network. Currently, I use this primitive procedure: create a void* buffer apply any byte ordering operations such as the hton fami...
Pecoraro asked 14/5, 2011 at 14:43

2

Solved

I'm using RestSharp to consume a REST Web Service. I've implemented my own Response object classes to use with automatic Serialization/Deserialization integrated inside RestSharp. I've also added ...
Neusatz asked 26/7, 2016 at 13:21

11

Solved

I have the following method to save an Object to a file: // Save an object out to the disk public static void SerializeObject<T>(this T toSerialize, String filename) { XmlSerializer xmlSeri...
Prisilla asked 12/3, 2010 at 17:24

3

Solved

I have a working WCF service which used JSON as its RequestFormat and ResponseFormat. [ServiceContract] public interface IServiceJSON { [OperationContract] [WebInvoke(Method = "POST", Reque...
Mayolamayon asked 22/2, 2012 at 19:43

7

Solved

I'm fighting with circular dependencies within serializers in my web API written using Django Rest Framework 3. Whereas I know that circular dependencies in a project is almost always a sign of bad...

© 2022 - 2024 — McMap. All rights reserved.