JSON serialization framework for .NET
Questions tagged [jsonfx]
18 questions
35
votes
3 answers
ASP.NET MVC Read Raw JSON Post Data
This is driving me crazy. I'm using ASP.NET MVC. I have a controller with an HttpPost action that acts as a callback URL that is called by another server (not under my control). I want to dynamically read JSON posted to it without using WebAPI or…

lantram
- 353
- 1
- 3
- 5
4
votes
2 answers
Could not load file or assembly 'JsonFx.Json' or one of its dependencies. An attempt was made to load a program with an incorrect format
I'm trying to compile and run a web application that includes some external DLLs.
The application compiles without errors, but when I run it, I receive the following error:
Could not load file or assembly 'JsonFx.Json' or one of its dependencies.…

user1401321
- 111
- 12
4
votes
4 answers
Read JSON string as key value
I have following json:
{
"serverTime": "2013-08-12 02:45:55,558",
"data": [
{
"key1": 1,
"key2": {},
"key3": {
"key4": [
""
],
…

Ashwani K
- 7,880
- 19
- 63
- 102
3
votes
1 answer
Dictionary enumerator stops providing an interface mid App on some Android devices in Unity3D
We’re experiencing an issue in Unity3D using C# and JsonFX on certain Android devices (Nexus 10, Galaxy Note 3 (SM-N9005, SM-N9000Q), Galaxy Tab, S4 (SGH-I337, SGH-M919, GT-I9505), Galaxy Note 10.1 (SM-P600, SM-P601), HTC One).
At the start of our…

Sassy
- 31
- 3
3
votes
1 answer
Approach for parsing json string with different type of objects
I have following json string
{
"serverTime": "2013-08-12 02:45:55,558",
"data": [{
"key1": 1,
"result": {
"sample1": [""],
"sample2": "test2"
}
},{
"key1": 1,
"result": {
…

Ashwani K
- 7,880
- 19
- 63
- 102
1
vote
2 answers
Unity Json De/serializing nested data
please help me! I'm trying to read a big chunk of data from a json file and most part of the data is a list of list! I dont know how to deserialize it!
So I found this guide, and did as him using the…

Vincent Erik Wong
- 13
- 6
1
vote
1 answer
JsonFx deserliazation return null unity3d
When i am trying to deserialize the Json string using JsonFx , I receive the value null.
Here is my Json String
{
"PlayerID": 123,
"PlayerName": "Avi",
"DemiGods": {
"Red": {
"Name": "Red",
"Level": 20,
"Attack": 5,
…

avisingh
- 121
- 1
- 8
1
vote
0 answers
JsonFx - parsing double to int
Given the following simple class I'm trying to deserialize with JsonFx:
public class JsonFxTest
{
public int IntValue { get; set; }
public JsonFxTest()
{
}
}
Note: I'm calling an API which I'm not the owner of, so I can't change…

KingKerosin
- 3,639
- 4
- 38
- 77
0
votes
2 answers
How to Convert Dictionary value to List in Unity
I saved my class using JsonFx libraries, into "Saved.json" file,
and I want to parse json file for loading my saved class data
But I can't find way to change Dictionary to my class type. Would you tell me how can it works?
I tried to like…

이현욱
- 21
- 1
- 4
0
votes
0 answers
Unity C#, JSON deserialization suddenly stopped working
My JSON deserialization in a Unity project suddenly stopped working with some of the input. I'm using JsonFX.
JSON:
{"CloudsRoot": [
{
"id": "94",
"campaign_id": "32",
"text": "CustomImage",
"bubble_num": "-1",
…

El Pollo Diablo
- 65
- 2
- 7
0
votes
1 answer
How to typecasting the object class from the dictionary value (object)
How can I fix the typecast error...
I want to create new my object using by JSON..
I attached example code..
public class Person
{
public int age;
public Person(int _age)
{
this.age = _age;
}
}
Dictionary

J.soo
- 233
- 1
- 3
- 9
0
votes
1 answer
Unity, JsonFX does not deserialize
I just want to serialize some data and deserialize it back, and it must work on iOS platform. Json.NET does not works on iOS.
The JsonFX can serialize data and string looks like string serialized by Json.Net, but JsonFX can't deserialize data…

user2686299
- 427
- 8
- 25
0
votes
1 answer
How to avoid sending null fields with JsonFX
In the codebase I am woking on, the most common object that is serialized in json has 3 fields. The value of one of these fields is often, but not always, null.
I was asked to avoid sending the field in the json build if its value is null. And I…

LBarret
- 1,113
- 10
- 23
0
votes
1 answer
JsonFx Deserialize Special Characters
I have a problem with deserializing special characters using Json.fx. When I try to serialize characters like "ğ,ş,ü", Jsonfx.Serialize and Jsonfx.Deserialize functions don't work correctly.
I try to solve Localization problem for my application.…

Halil Cosgun
- 427
- 3
- 10
- 24
0
votes
1 answer
how to filter/transform object attributes to be serialized with jsonfx?
I use JsonFX to serialize an instance to json, and I need to ignore some attributes and preprocess others. How do I do that ? The doc is not very clear on that.
My class looks a bit like this one :
public class Primitive{
public string type;
…

LBarret
- 1,113
- 10
- 23