title: Unexpected token } at the end of json response
body: <p>I store json object as varchar in database. </p>
  
  <p>There strange thing is that excess ending brace is added to the end of the only one of my json objects(from thousands).</p>
  
  <p>I see the bug in chrome &amp; firefox. In firefox console error is the following:</p>
  
  <blockquote>
    <p>SyntaxError: JSON.parse: unexpected non-whitespace character after
    JSON data.
    In chrome the error is: Uncaught SyntaxError: Unexpected
    token }</p>
  </blockquote>
  
  <p>While debugging I assured that myjson string that i return from grails controller is without that excessed <code>'}'</code>.</p>
  
  <p>I render json from controller by the following code:</p>
  
  <pre><code>render(text:shape?.geojson, contentType:"application/json", encoding:"UTF-8")
  </code></pre>
  
  <p>Also, the problem is not in javascript, as i get not valid json by get request.</p>
  
  <p>What could be the cause of such a strange behaviour?
  Thanks in advance.</p>