readJsonStr

fun DataFrame.Companion.readJsonStr(text: String, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyFrame

Return

DataFrame from the given text.

Parameters

text

JSON as String to be converted to a DataFrame.

keyValuePaths

List of JsonPaths where instead of a ColumnGroup, a FrameColumn<NameValueProperty> will be created.

typeClashTactic

How to handle type clashes when reading a JSON file.

header

Optional list of column names. If given, text will be read like an object with header being the keys.

unifyNumbers

Whether to unify the numbers that are read. true by default.


fun DataRow.Companion.readJsonStr(text: String, header: List<String> = emptyList(), keyValuePaths: List<JsonPath> = emptyList(), typeClashTactic: JSON.TypeClashTactic = ARRAY_AND_VALUE_COLUMNS, unifyNumbers: Boolean = true): AnyRow

Return

DataRow from the given text.

Parameters

text

JSON as String to be converted to a DataRow.

keyValuePaths

List of JsonPaths where instead of a ColumnGroup, a FrameColumn<NameValueProperty> will be created.

typeClashTactic

How to handle type clashes when reading a JSON file.

header

Optional list of column names. If given, text will be read like an object with header being the keys.

unifyNumbers

Whether to unify the numbers that are read. true by default.