- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
I have a few questions about JSON. My idea is that I want to make a set of commands based mainly on a JSON file. The JSON file should have the following:
Now, inside the plugin, I want to read the JSON and pass it as commands from window commands. So I want to know the following:
1. How can I get the length of those value from the JSON if we consider that the values are made like a hash? What I mean by this is like, what if,
whole JSON Files = {
:first_enemy = [level, rank],
:second_enemy = [level, rank]
}
I am setting this example from RPG Maker VX Ace scripting experience. Please correct me if JSON does not work this way.
2. I want to set the value of name as command name, the value of the level as level and rank as rank. So in any sense, I want the JSON to handle the commands or how many commands is shown inside the plugin.
Thank you in advance.
- value of name
- value of first number named level
- value of second number called rank
Now, inside the plugin, I want to read the JSON and pass it as commands from window commands. So I want to know the following:
1. How can I get the length of those value from the JSON if we consider that the values are made like a hash? What I mean by this is like, what if,
whole JSON Files = {
:first_enemy = [level, rank],
:second_enemy = [level, rank]
}
I am setting this example from RPG Maker VX Ace scripting experience. Please correct me if JSON does not work this way.
2. I want to set the value of name as command name, the value of the level as level and rank as rank. So in any sense, I want the JSON to handle the commands or how many commands is shown inside the plugin.
Thank you in advance.
