Error While loading data in druid from json file

Error : Caused by: com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'json' into a subtype of [simple type, class io.druid.indexer.path.PathSpec]

“json” is not a valid inputSpec type, for JSON files you’ll probably want to use the “static” type inputSpec: http://druid.io/docs/latest/ingestion/batch-ingestion.html#inputspec-specification

There is a “json” type parseSpec however.

Thanks,

Jon