Skip to main content

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`.

Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

I've used FromJson in Unity/C# a dozen times, and yet for some reason I cannot figure out why this one's not working. Here's the code that does the parsing: ...
rpatton583's user avatar
0 votes
1 answer
173 views

I'm making a game in Unity and I'm using json format to save. I have no problem recording it on my computer, but it does not record the animals I catch on my Android phone. How can I solve this? What ...
Volkan AKDAG's user avatar
0 votes
1 answer
180 views

Task: to develop a function that efficiently places rectangular blocks in rectangular 2D container. The location of the blocks in the container should be as dense as possible in order to rationally ...
Назар Саханда's user avatar
0 votes
0 answers
155 views

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 ...
Seyren Windsor's user avatar
0 votes
1 answer
2k views

I'm trying to create a script that parses a JSON file to get information about the levels in my project. I know this technique should work because I have the same code in two other scripts, parsing ...
rpatton583's user avatar
2 votes
1 answer
783 views

I need to create a lot of read-only text data. As far as I know storing a lot of data directly in the script is not good, so I need to create a separate json file with ready-made data to load in the ...
Silz's user avatar
  • 37
0 votes
0 answers
53 views

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 ...
Kaeru's user avatar
  • 3
1 vote
0 answers
1k views

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 ...
ChrisC's user avatar
  • 116
0 votes
1 answer
717 views

What I have JSON file ...
Arian_ki's user avatar
  • 691
0 votes
0 answers
351 views

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 ...
arcadeperfect's user avatar
0 votes
1 answer
65 views

I'm trying to make an RPG style game with equipment using ScriptableObject, but whenever I equip the item, it does not register in my JSON data. Here is the script ...
Dwiky Anderson's user avatar
-1 votes
1 answer
589 views

i was wondering if you could help me with an issue i have with firebase and databases! I have a class that saves variables into an array. i have managed to send that json file to firebase and i can ...
stratos la's user avatar
0 votes
1 answer
225 views

I have been trying to work out a subscription form for my game and thanks to you guys here, I came to a solution which works but still needs some changes. The idea is to have an input field in the ...
stratos la's user avatar
0 votes
1 answer
2k views

**UPDATE: This answer has been solved and this post updated to ** I am creating an inventory system and decided to keep a master list of all the items. The goal is to use Newtonsoft's JSON.net to ...
Ian Rosenberg's user avatar
0 votes
1 answer
140 views

I'm making an add-on that lets the player step over 1-block high blocks and the foot_size property is exactly what I'm looking for. The documentation says the following: "Sets the number of ...
icebird76's user avatar
  • 101
2 votes
1 answer
2k views

i have the problem that when I convert an instance of highscores through JsonUtility.ToJson the value of my value of it is always {"highscoreEntryList":[{},{},{},{},{},{},{},{},{},{},{}]}... ...
Hypes's user avatar
  • 21
1 vote
1 answer
1k views

The following is my JSON file: ...
AKA's user avatar
  • 111
0 votes
0 answers
86 views

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 ...
user2350585's user avatar
0 votes
1 answer
2k views

I'm building an HTML game. For this game I want to implement a save-feature that should work like in some already existing games: The user can chose export, this ...
sininen's user avatar
  • 101
4 votes
2 answers
2k views

I'm currently creating an external tool to generate dialogues that are exported as JSON files. The idea is that after you create a dialogue (as a JSON), my main Unity project reads that file and ...
roseicollis's user avatar
1 vote
1 answer
367 views

I am trying to save data about various entities in each Level in my game in a JSON file and load it at Runtime(Like a Scene file in Unity). I can save simple stuff like floats and ints and parse them ...
Vignesh Gunasekaran's user avatar
0 votes
2 answers
2k views

I get an error every time I try to parse this .json file. Here is the error: ...
user3262463's user avatar
0 votes
1 answer
4k views

(I posted a very similar question here recently and the response I received was helpful. But I have been advised to start a new question, and here it is.) I am developing a Unity game which includes ...
WPWPWP's user avatar
  • 101
2 votes
1 answer
6k views

I'm trying to use Json to hold game dialog in a text asset file. I've tried to make a barebones project to test this and it is failing with the Error Message: ArgumentException: JSON must represent an ...
Big T Larrity's user avatar
0 votes
1 answer
383 views

I have a database set up on firebase and when i run my game in the unity edtitor and as a standalone exported Windows .exe file, the call gets made correctly to the database and JSON data gets posted ...
AC007's user avatar
  • 1