toJSONArray

open fun toJSONArray(string: String): JSONArray

Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.

Return

A JSONArray of JSONObjects.

Parameters

string

The comma delimited text.

Throws

if a called function fails


Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.

Return

A JSONArray of JSONObjects.

Parameters

x

The JSONTokener containing the comma delimited text.

Throws

if a called function fails


open fun toJSONArray(names: JSONArray, string: String): JSONArray

Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.

Return

A JSONArray of JSONObjects.

Parameters

names

A JSONArray of strings.

string

The comma delimited text.

Throws

if a called function fails


Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.

Return

A JSONArray of JSONObjects.

Parameters

names

A JSONArray of strings.

x

A JSONTokener of the source text.

Throws

if a called function fails