Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Tools
Tools.JSON
Tools.JSON.JSONArray

Method Tools.JSON.JSONArray()->toJSONObject()


Method toJSONObject

JSONObject toJSONObject(JSONArray names)

Description

Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.

Parameter names

A JSONArray containing a list of key strings. These will be paired with the values.

Returns

A JSONObject, or null if there are no names or if this JSONArray