Explanation of JSON
JSON (JavaScript Object Notation) is like a simple language that applications use to exchange information. Think of it as an organized list of key-value pairs:
- The key describes what it is (e.g., “name”).
- The value provides the information (e.g., “Alice”).
Example:
{
"name": "Alice",
"age": 25,
"profession": "Developer"
}
It’s easy for humans to read and for machines to understand. Applications use it to send and receive data, like filling out forms or displaying a webpage.
Explanation of Arrays in JSON
In JSON, arrays are used to organize a list of data. Think of it as an ordered collection of items, like a list of objects or values. Arrays are enclosed in square brackets []
, and the items inside are separated by commas.
Here’s a simple example:
{
"fruits": ["apple", "banana", "orange"]
}
Here, the key “fruits” contains an array with three elements: "apple"
, "banana"
, and "orange"
.
An array can also contain JSON objects, for example:
{
"students": [
{ "name": "Alice", "age": 25 },
{ "name": "Bob", "age": 22 }
]
}
In this case, "students" is an array containing two objects, each representing a student with a name and an age.
Arrays are great for organizing structured lists in complex data.
I will list here all the possible values and/or options for each pair.
At the end of this page, you will find a pre-filled template that you need to use and simply redefine the values corresponding to the weapon you want to add to the API.
ID: The ID is simply the name of the item in lowercase, with spaces replaced by underscores “_”. All other characters such as “: ; , . -” are simply removed (for example, Hunt: Showdown 1896 becomes hunt_showdown_1896).
can_be_dual: This element is a boolean, which means it can be true for yes or false for no.
category: Can be Small or Medium or Large . It is the size of the item in the game.
image: Just replace category and weapons_id “weapons/category/weapons_id.png”.
unlock rank: The level number at which the item is unlocked.
unlock condition: The condition at which the item is unlocked.
Ammo: This is an array where you can add multiple elements. The elements are the ammunition/s that the weapon uses, only the non-special ones.
can_be_dual: This element is a boolean, which means it can be true for yes or false for no.
category: Can be Small or Medium or Large . It is the size of the item in the game.
image: Just replace category and weapons_id “weapons/category/weapons_id.png”.
unlock rank: The level number at which the item is unlocked.
unlock condition: The condition at which the item is unlocked.
Ammo: This is an array where you can add multiple elements. The elements are the ammunition/s that the weapon uses, only the non-special ones.