title: How to limit the length of a JSON string after encoding?
body: <p>I am using go to collect responses from URLs and store them in JSON for later processing. I want to enforce a limit on the size of the responses I store, however I've been unable to enforce this limit properly as when the JSON is marshalled the string is escaped which pushes it's length over the limit.
  How do I limit the length of the string including the escape characters when marshaling?</p>