How to insert JSON data directly to elastic search using curl command?

You already created a document in your index with another type name.
Drop the index first if you don't care about the existing data.