Questions tagged [json]
JSON (JavaScript Object Notation) is a lightweight human-readable data interchange format. It is programming language-independent and many modern programming languages include code to generate and parse JSON-format data. JSON filenames use the extension `.json`.
16
questions with no upvoted or accepted answers
1
vote
0
answers
962
views
Unity: JsonUtility.ToJson() not serializing everything
I'm trying to serialize the state of play of my Unity game (Unity 2021.3.7f1) to JSON using UnityEngine.JsonUtility.ToJson, so that I can persist this state to disk ...
1
vote
0
answers
70
views
Creating Customization System in Unity
I'm making a game with customization system for both characters and weapons and I don't know exactly what's the best way of doing the customizations themselves.
I'm thinking of creating separate ...
1
vote
1
answer
774
views
Can't deserialize parameters from JSON in LibGDX
I am quite new to JSON and I have been having trouble with this data-driven asset manager (not my code). I have been trying to deserialize parameters for my TmxMapLoader object from JSON. It takes the ...
1
vote
0
answers
648
views
How to parse HTTP response (JSONdata) in cocos2d-x
I am making a HTTP request to a server and I am getting data from the database. Now I want to parse the JSON data and get the data into variables like this:
...
0
votes
0
answers
33
views
Scrolling camera with a tile map stored in JSON and PNG
I'm trying to get a scrolling camera into my SDL2 game and I'd like some advice. The way I'm implementing my map is as follows:
I use a tileset to build a map in the Tiled map editor, and I'm ...
0
votes
0
answers
67
views
Can't start Unity project, none of the scripts load and materials are pink: JSON parse error: The document is empty
I am trying to open a project from a company, the problem is, nobody has this problem except me, so one can replicate it.
When i open the project i get the following issues:
There seems to be a file ...
0
votes
0
answers
54
views
Ideas for how to attach meta data to an arbitrary sprite sheet?
I am currently messing around with monogame and creating some silly sprite based games. One issue I have is when I get sprites for OpenGameArt or any equivalent they are often in spritesheets in a ...
0
votes
1
answer
260
views
Problem with JSON ScriptableObject saving using NewtonSoft JSON
I am saving a list of ScriptableObjects in a JSON file using NewtonSoft JSON, the problem being that the following error message is thrown when it tries to save:
<...
0
votes
0
answers
231
views
"rigidbody property has been deprecated" when trying to save ScriptableObject to JSON with NewtonSoft
I am using NewtonSoft Json to save data in my Unity game, but when I try to save something it get this error:
...
0
votes
0
answers
39
views
Entity initialization in an online game
How do online games handle creation of new entities? I currently have an EntityFactory class that requires an ID (specifying the entity type). A bunch of subroutines are executed to determine exactly ...
0
votes
0
answers
201
views
How to save a class full custom property types and their data to disk
Background:
My app is a sandbox with a large number of parameters that I want to be able to easily add / selectively expose to the user, edit during runtime through the game UI or from the Unity ...
0
votes
0
answers
67
views
Saving JSON to firebase
I want to integrate Firebase to my android/iOS game. So far in production I used JSON to save a class into the devices PersistentDataPath and load them accordingly. I did follow the firebase ...
0
votes
0
answers
254
views
JSON deserializing 'nested' Array
Greetings!
I'm working on a class that loads and parses .json files and returns information from the loaded .json, but I have problems reading the nested arrays of my .json files.
Turning the ...
0
votes
0
answers
87
views
How do I add data to a Dictionary after I deserialize the data for the class?
I'm getting a null reference exception on "AddEmpireView()" and I cannot figure it out for the life of me. Here's the class:
...
0
votes
0
answers
73
views
Facing issues trying to Parse JSON in Lua
Problem statement:
Need help trying to load a JSON file into a table array in Lua for Corona SDK development.
My Objective:
Call specific data from JSON file to my application by using key value ...
0
votes
0
answers
65
views
Questions about Jrpg NPC events (Unity C#)
So, I'm trying to wrap my head around something. I've got my basic quest system up and running for my rpg style game.
Right now I'm taking a look at NPC events and triggers that as I see it have two ...