title: JQ can't parse an Unicode emoji character. Is it valid JSON?
body: <p>I have a JSON file, which contains JSON from Clojure's <code>data.json</code> library. The data came from Twitter where people seem to smile a lot. </p>
  
  <pre><code>$ cat /tmp/myfile | jq .
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>parse error: Invalid \uXXXX\uXXXX surrogate pair escape at line 1, column 14862268
  </code></pre>
  
  <p>The offending section is:</p>
  
  <pre><code>$ cut -c 14862258-14862269 /tmp/2017-02-23-2
  79-7\ud83d",
  </code></pre>
  
  <p>So, this escape code was found in a real JSON file and JQ can't read it.</p>
  
  <pre><code>echo '"\ud83d"' | jq .
  </code></pre>
  
  <p><a href="http://www.fileformat.info/info/unicode/char/1f603/index.htm" rel="nofollow noreferrer">Fileformat.info seems to suggest</a> that it should come in a pair:</p>
  
  <pre><code>SMILING FACE WITH OPEN MOUTH
  "\uD83D\uDE03"
  </code></pre>
  
  <ol>
  <li><p>Is this truly an invalid character to find in a JSON file? Is my JSON technically invalid?</p></li>
  <li><p>Is there a simple utility I can pipe the data through to strip out these characters prior to JQ? Or can I make JQ relax it interpretation?</p></li>
  </ol>