jsonserializer Questions

2

Solved

I have faced an issue about serializing struct to JSON. So, I have a struct "Coordinates" namespace CoordinatesNameSpace { public struct Coordinates { public Coordinates(string key, st...
Auditory asked 3/7, 2020 at 14:54

3

Solved

I am working in .net core project. I want to serialize the objects using JavaScriptSerializer. JavaScriptSerializer Serializer = new JavaScriptSerializer(); I added the namespace using System.We...
Catamenia asked 9/1, 2019 at 12:40

0

When you have an MVC application you can append services.AddMvc().AddJsonOptions(options => ... and that will set the Json options for all the controllers. What is the equivalent for a Blazor Serv...
Blunderbuss asked 11/5, 2020 at 20:36

3

Solved

I need to map JSON obj to a class and its arrays to ArrayList in Android and it should have all the children data as well. (with nested arraylists too) and i need to convert updated data list again...
Chimene asked 10/1, 2018 at 3:24

3

Solved

I have response string from the backend like this: { "status": "success", "data": "{\"name\":\"asd\",\"address\":\"Street 1st\"}" } I think the problem was because the double quote (") in the ...
Hecht asked 16/5, 2018 at 8:9

2

Solved

I can't get access to the DataContractJsonSerializer method from System.Runtime.Serialization.Json If I do: using System.Runtime.Serialization.Json; I get an error... How can I access this in ...

4

Solved

Does .NET 4 come with any class that serializes/deserializes JSON data? I know there are 3rd-party libraries, such as JSON.NET, but I am looking for something built right into .NET. I found Data ...
Roundtree asked 18/7, 2010 at 14:23

4

Solved

I'm calling a simple get API using djangorestframework. My Model is class Category(models.Model): category_id = models.AutoField(primary_key=True) category_name = models.CharField("Category Nam...
Osteoporosis asked 5/9, 2016 at 6:3

2

I've got the API working using the standard process, but I want to remove the data namespace from the JSON output. I see I need to implement ArraySerializer, I have been through the Fractal docs, b...

12

Solved

I cannot seem to find the JavaScriptSerializer object nor the the System.Web.Script.Serialization namespace within Visual Studio 2010. I need to serialize something to JSON what am I supposed to us...
Davison asked 9/8, 2011 at 18:15

3

I have the following Code: using MongoDB.Bson; using MongoDB.Bson.IO; using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver; using MongoDB...
Aldrin asked 19/11, 2016 at 11:28

2

Solved

I have a datagridview on my Windows Form Application that takes input from a user. I'd like to use JSON to store this input and am trying to serialize the input from the datagridview into JSON. So...
Bittersweet asked 22/11, 2016 at 12:26

7

Solved

Is there a way to remove the class field in a JSON converter? Example: import testproject.* import grails.converters.* emp = new Employee() emp.lastName = "Bar" emp as JSON as a string is ...
Allow asked 27/6, 2011 at 16:2

1

I have case class case class User ( id: Option[Long] = None, username: String, password: Option[String] = None, ) And here is json serialiser for this case class object User { implicit val...
Anabal asked 22/8, 2016 at 22:47

3

Solved

I wrote the following JsonSerializer to let Jackson serialize an array of integers into JSON: import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer;...
Saskatoon asked 24/11, 2015 at 11:42

2

Solved

I have a rest service which returns marker interface and this interface have multiple implementations and don't have any common property in the implementations. @RequestMapping(value = "/users/{u...
Azar asked 7/12, 2015 at 14:53

3

Solved

I'm trying to serialize an (Entity Framework 6) entity into json. I am making sure the entry is in memory before serializing via the AsNoTracking() method however I get an error as it cant receive ...

1

Solved

I want to send 2 objects to Java server from Android client using socket (as I am developing a Remote PC). AndroidClient.java public class MainActivity extends Activity{ Socket client; Object...
Onesided asked 8/2, 2015 at 8:23

3

Solved

I am getting this JSON response from a system I am connecting to and trying to figure out the best way to deserialize it into a C# object. I am currently using RestSharp which seems pretty straight...
Imponderabilia asked 11/8, 2014 at 22:11

3

Solved

I have a django app which was running on 1.4.2 version and working completely fine, but recently i updated it to django 1.6.5 and facing some wierd errors like below Actually i am getting this dur...
Mandrill asked 15/6, 2014 at 12:2

1

Please note that I'm explicitly referencing SignalR 2.0 here ... I've seen some (nasty) approaches for this with SignalR 1.1/1.2 ... but none for 2.0 yet. Has anyone had any success with changing ...
Atlantic asked 20/10, 2013 at 2:41

2

Suppose I have the following three classes (getters and setters left out for brevity): @JsonAutoDetect public class InfoCollection{ private InfoType1 info1; private InfoType2 info2; } @JsonAuto...
Osmium asked 12/2, 2013 at 15:29

3

Solved

I am trying to deserialize JSON into a Java POJO using Jackson. Without giving away confidential information, here is an example stack trace when ObjectMapper's deserialization fails: org.codehaus...
Cushat asked 15/11, 2012 at 21:30

1

Solved

Deserializing a small, fixed size, fixed structure, with fixed field names, JSON string is easy: Just define a class that contains all the fields (with correct types and names, all known at compile...
Reinaldoreinaldos asked 25/10, 2012 at 15:51

1

Solved

How do you force the __type information from rendering in the deserialized JSON response? I have no need to reserialize this data so I'd prefer to remove it. ServiceStack seems to add this to the d...
Hildagarde asked 4/10, 2012 at 16:0

© 2022 - 2024 — McMap. All rights reserved.