Function jsonGetKeys( jsonObject )
- Description:
-
Returns an array giving keys for each key-value pair in a JSON object.
The members of a JSON object are not ordered, so no order can
be guaranteed in the output array.
- Parameters:
-
jsonObject
(JSONObject)
- JSON object
- Return Value (array of String):
- string array containing keys of object
- Example:
- jsonGetKeys(jsonObject("{\"one\", 1, \"two\", 2,
\"three\", 3}"))
= ["one", "two", "three"]
- Signature:
String[] jsonGetKeys(JSONObject)