"error" : "JsonParseException[Unexpected end-of-input: expected close marker for OBJECT (from [Source: [B@19d6816; line: 1, column: 0])\n at [Source: [B@19d6816; line: 2, column: 3]]"

Hi
Getting the "error" : "JsonParseException[Unexpected end-of-input: expected close marker for OBJECT (from [Source: [B@19d6816; line: 1, column: 0])\n at [Source: [B@19d6816; line: 2, column: 3]]",
"status" : 500 error when i run below command
curl -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json

Can anyone help me?

Thanks in advance.

There's probably a problem with your data.

It's a valid json.I already checked it..

Can you please show the first few lines from the input?

This is my json input:

{
"account_number": 0,
"balance": 16623,
"firstname": "Bradshaw",
"lastname": "Mckenzie",
"age": 29,
"gender": "F",
"address": "244 Columbus Place",
"employer": "Euron",
"email": "bradshawmckenzie@euron.com",
"city": "Hobucken",
"state": "CO"
}

It's a valid JSON not a valid bulk.

Then how to execute this json? i mean what is the command?

PUT /index/type/id
{
your doc
}