elasticsearch query_parse_exception Unexpected character (':' (code 58)): was expecting comma to separate ARRAY entries\n
<p>I'm a novice and have installed es2.3.1 on my server.But when I read The Definitive Guide on the website, I found an example which I got an error on my server. <a href="http://Unexpected%20character%20(&#39;:&#39;%20(code%2058)):%20was%20expecting%20comma%20to%20separate%20ARRAY%20entries%5Cn%20at%20[Source:%20[B@29d143;%20line:%201,%20column:%2035]" rel="nofollow noreferrer">Here</a> is the link and the error is as follows:</p>

<pre><code>{
"error" : {
"root_cause" : [ {
  "type" : "query_parsing_exception",
  "reason" : "Failed to parse",
  "index" : "megacorp"
} ],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [ {
  "shard" : 0,
  "index" : "megacorp",
  "node" : "yZnpVEOVSl-4Q6fyrU-1EQ",
  "reason" : {
    "type" : "query_parsing_exception",
    "reason" : "Failed to parse",
    "index" : "megacorp",
    "caused_by" : {
      "type" : "json_parse_exception",
      "reason" : "Unexpected character (':' (code 58)): was expecting comma to separate ARRAY entries\n at [Source: [B@29d143; line: 1, column: 35]"
    }
</code></pre>

<p>I've searched this question and found some similar question like <a href="https://stackoverflow.com/questions/35181736/elasticsearch-curl-does-not-work">this</a>, but unfortunately it doesn't work. What makes me confused is that though I copied the book's code and still got an error. Can anyone help me with that? Thanks very much!</p>