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

Method Tools.JSON.JSONObject()->put()


Method put

JSONObject put(string key, mixed val)

Description

Put a key/value pair in the JSONObject. If the value is null, then the key will be removed from the JSONObject if it is present.

Parameter key

A key string.

Parameter val

An object which is the value. It should be of one of these types: Boolean, Double, Integer, JSONArray, JSONObject, String, or the JSONObject.NULL object.

Returns

JSONObject