Differences

This shows you the differences between two versions of the page.

Link to this comparison view

api:json_array [2019/06/08 05:49] (current)
Line 1: Line 1:
 +====== JSON Array ======
 +When sending requests to the API and your asked to provide a raw JSON Array, you must provide the data requested as a JSON Array.
  
 +For instance if you were setting the testers for your pack and had 2 users, TestUser1 and TestUser2 you would send the request as below:
 +
 +<​code>​
 +[ "​TestUser1",​ "​TestUser2"​ ]
 +</​code>​
 +
 +You can send it like below if you want it easier to format:
 +
 +<​code>​
 +[
 +    "​TestUser1",​
 +    "​TestUser2"​
 +]
 +</​code>​
 +
 +But be careful to not include a closing comma otherwise the request will return invalid:
 +
 +<​code>​
 +[
 +    "​TestUser1",​
 +    "​TestUser2",​ <-- WRONG
 +]
 +</​code>​
api/json_array.txt · Last modified: 2019/06/08 05:49 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0