mirror of
https://github.com/apache/druid.git
synced 2025-02-25 12:35:33 +00:00
Fix JSON flatten docs, add link to path expression tester (#3105)
This commit is contained in:
parent
4ab675e863
commit
c5dbf364e3
@ -85,12 +85,12 @@ To flatten this JSON, the parseSpec could be defined as follows:
|
|||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"name": "world-hey",
|
"name": "world-hey",
|
||||||
"expr": "$.world.hey"
|
"expr": "$.world[0].hey"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"name": "worldtree",
|
"name": "worldtree",
|
||||||
"expr": "$.world.tree"
|
"expr": "$.world[1].tree"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "path",
|
"type": "path",
|
||||||
@ -148,3 +148,4 @@ Note that:
|
|||||||
* Duplicate field definitions are not allowed, an exception will be thrown.
|
* Duplicate field definitions are not allowed, an exception will be thrown.
|
||||||
* If auto field discovery is enabled, any discovered field with the same name as one already defined in the field specs will be skipped and not added twice.
|
* If auto field discovery is enabled, any discovered field with the same name as one already defined in the field specs will be skipped and not added twice.
|
||||||
* The JSON input must be a JSON object at the root, not an array. e.g., {"valid": "true"} and {"valid":[1,2,3]} are supported but [{"invalid": "true"}] and [1,2,3] are not.
|
* The JSON input must be a JSON object at the root, not an array. e.g., {"valid": "true"} and {"valid":[1,2,3]} are supported but [{"invalid": "true"}] and [1,2,3] are not.
|
||||||
|
* [http://jsonpath.herokuapp.com/](http://jsonpath.herokuapp.com/) is useful for testing the path expressions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user