title: How to write multiline Elasticsearch scripts with Postman
body: <p>I'm trying to do an Elasticsearch GET query with a very simple script using Postman.  When the script is all on one line it works but if I try to do multiple lines I get an error</p>
  
  <p>I'm sening the data as JSON with Content-Type: application/json in the header</p>
  
  <p>Example - Works:</p>
  
  <pre><code>{
      "query":{
          "match_all": {}
      },
      "script_fields": {
          "my_custom_field":{
              "script": {
                  "lang": "painless",
                  "source": "int count = 1; return count;"
              }
          }
      }
  }
  </code></pre>
  
  <p>Example - Produces Error:</p>
  
  <pre><code>{
      "query":{
          "match_all": {}
      },
      "script_fields": {
          "my_custom_field":{
              "script": {
                  "lang": "painless",
                  "source": """
                     int count = 1;
                     return count;
                  """
              }
          }
      }
  }
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code> "Unexpected character ('\"' (code 34)): was expecting comma to separate Object entries\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@20493763; line: 9, column: 18]"
  </code></pre>
  
  <p>I think postman may be adding line breaks in behind the scenes.</p>