JSONToArray |
Type | function |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | JSONToArray(<pJSON>)
|
Associations | ws.goulding.script-library.mergjson |
Summary | Parse JSON to a LiveCode array
|
Parameters | Name | Type | Description |
---|
pJSON | | A UTF8 encoded JSON string
|
|
Example | local tProfile
put url "https://graph.facebook.com/me" into tProfile
if the result begins with "error" then
else
put JSONToArray(tProfile) into tProfile
end if
|
Values | Name | Type | Description |
---|
return | | A LiveCode array
|
|
Description | JSON arrays are translated to LiveCode numerically indexed arrays
with keys 1...N and JSON objects are translated to LiveCode array
key - value pairs.
|