Functions not honoring API specification?

I am getting a lot more shit from the JSON encoding:

  • Escaped newlines in the source like
{
  "bla": "\n\
     next line \n\
  "
}
  • Unfinished objects
{ "content": "some content"
  • Single quotes where double quotes should be
{ "content":' some string = "abc:' }

This is pretty unworkable to be honest. It might be worsened for me because the JSON can contain pretty large Java files.