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

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


Method optString

string optString(string key, string|void defaultValue)

Description

Get an optional string associated with a key. It returns the defaultValue if there is no such key.

Parameter key

A key string.

Parameter defaultValue

The default

Returns

A string which is the value.