how do I specify dimensions in JSON

In the docs, it says we need to send flattened JSON.

Saw this: Can a nested JSON still be used, and if so, do I use . to identify it the ingestion spec under “dimensions” : [ … ]?
For example:

Okay, looks like this is what is applicable – My nested JSON did not show up at all so it looks like it doesn’t looked like nested JSON gets flattened.

Druid supports TSV, CSV, and JSON out of the box. Note that nested JSON objects are not supported, so if you do use JSON, you should provide a file containing flattened objects.

{"time": "2015-09-01T00:00:00Z", "url": "/foo/bar", "user": "alice", "latencyMs": 32}
{"time": "2015-09-01T01:00:00Z", "url": "/", "user": "bob", "latencyMs": 11}
{"time": "2015-09-01T01:30:00Z", "url": "/foo/bar", "user": "bob", "latencyMs": 45}

Hi Timothy,

I believe the JSON flattening was introduced in Druid 0.9.0, you would need to define a “flattenSpec” in your “parseSpec”, instructions can be found at: