JSON is used to change the json api code into the list code we want, usually the json api link is a list text provided by the website provider.
CODEIO Json writing format
<json> setting || content </json>
You can fill in the settings section with the following parameters using a comma separator "," for example txt=fill in json above, jlist=items
- txt=json code example: text={success: "true", failed: "false"}
- url=json api link example: url=http: //example.com/yourapitoken
- jlist=json selector functions as which json we want to make the looping list (leave blank for detail json mode) for example: jlist=items or jlist=kind|item for further
- s=select number functions to select and display only 1 contents of json for example: s=1
You can fill in the content section with the following code list
- %jsn(var)% - displays the first json data
- %jsn(var|var)% - displays the second json data
- %jsn(var|var|var)% - displays the third json data
- %jsn(var|var|var|var)% - displays the fourth json data
Example if the json code is
{"success": "true", "failed": "false"}
whereas we want to retrieve the contents of
success then the code is
%jsn(success)% then the output is true according to the json code
The second example is if the json code types like this
{"success": {"name": "eldio"}} or
{"success": [{"name": "eldio"}]}
use this code %jsn(success|name)%
json list example
if the json code looks like this
{
"status" : "success",
"items" : [{
"kind" : "oke",
"id" : { "videoId" : "ewr4r4r" }
}]
}
- <json>txt=fill in json above ,jlist=items||%jsn(kind)%<br /></json> result "oke"
- <json>txt=fill in json above ,jlist=items||%jsn(kind|id)%<br /></json> result "ewr4r4r"