title: "Unable to deserialize request: Unexpected character ('j' (code 106)): was expecting comma to separate OBJECT entries
body: <p>I'm having trouble sending something to neo4j api.
  This is the body of my request.</p>
  
  <pre><code>{
    "statements" : [ {
      "statement" : "Create (user:User{ name: "jon" }) Return user"
    } ]
  }
  </code></pre>
  
  <p>I'm getting:</p>
  
  <pre><code>{
      "results": [],
      "errors": [
          {
              "code": "Neo.ClientError.Request.InvalidFormat",
              "message": "Unable to deserialize request: Unexpected character ('j' (code 106)): was expecting comma to separate OBJECT entries\n at [Source: HttpInputOverHTTP@7481578b; line: 3, column: 45]"
          }
      ]
  }
  </code></pre>
  
  <p><strong>What is actually wrong with my code? Why would it expect a comma when i have only 1 property there?</strong></p>
  
  <p>I've tried this: (nicer formatting) </p>
  
  <p><code>"statement" : "CREATE ( user:User { name: "jon" } ) Return user"</code></p>
  
  <p>Same error. Modeled after this:</p>
  
  <p><code>"statement" : "CREATE ( bike:Bike { weight: 10 } ) Return bike"</code></p>
  
  <p>Which works just fine. It's from the documentation.</p>
  
  <p>The only difference is <strong>the string.</strong> But how else should i encode <code>jon</code> ?</p>
  
  <p>because this: </p>
  
  <p><code>"statement" : "CREATE ( user:User { name: jon } ) Return user"</code></p>
  
  <p>Does not work either. </p>
  
  <p><strong>I find this very counter intuitive.</strong> 
  Any help is appreciated :) And maybe you can provide some explanation of why this is necessary. Thank you :)</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Based on @cybersam answer - i realized i forgot to escape the string.</p>
  
  <p>Yet this:</p>
  
  <p><code>"statement" : "CREATE (user:User{\"name\":\"jon\"}) Return user"</code></p>
  
  <p>produces this: </p>
  
  <pre><code>"errors": [
          {
              "code": "Neo.ClientError.Statement.SyntaxError",
              "message": "Invalid input '\"': expected whitespace, a property key name, '}', an identifier or UnsignedDecimalInteger (line 1, column 19 (offset: 18))\r\n\"CREATE (user:User{\"name\":\"jon\"}) Return user\"\r\n                   ^"
          }
  </code></pre>
  
  <p>My code get's produced automatically from <code>elixir maps</code> into <code>json</code>, using <code>Poison</code> module. I it doesn't seem to work to make Posion to give me <code>{ name : 'jon' }</code> as suggested.</p>