I understand sir. What about the size/length of the json string? Would that 
cause an issue/crash?

On Tuesday, September 12, 2017 at 10:38:17 AM UTC-7, Jens Alfke wrote:
>
>
>
> On Sep 12, 2017, at 2:43 AM, dyowee <[email protected] <javascript:>> 
> wrote:
>
> So isValidJSONObject called as indicated here?
>
> https://developer.apple.com/documentation/foundation/nsjsonserialization/1418461-isvalidjsonobject?language=objc
>
>
> No, that's the other direction — it's for preflighting *generating* JSON 
> from objects. Not parsing.
>
> As I said, we don't preflight the JSON. We just call +[NSJSONSerialization 
> JSONObjectWithData:error:] to parse it, and rely on it to return an error 
> if the JSON is invalid.
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/130764ef-64ac-49cb-a1eb-d465a165aeec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to