View on GitHub

JODA - JSON On Demand Analysis

Efficient data wrangling for semi-structured JSON documents

TYPE - Type

Returns the type of the given attribute

Details

The type may be any of the following:

Output

String: The string name of the type

Usage

TYPE()

Examples

Example 1

Input Document

[1,2]
{"doc":1}
1
"String"
true
null

Query

LOAD tmp
AS ('': TYPE(''))

Result

"ARRAY"
"OBJECT"
"NUMBER"
"STRING"
"BOOL"
"NULL"