fix hack for strange buffer bug which hung JSON by corrupting opening bracket.