Does anyone know if NSJSONSerialization is thread safe? Specifically, can I call JSONObjectWithData() concurrently from multiple background threads? The class docs don't mention anything about it:
Nor does the threading summary page:
Thanks!
Greg
Yes, NSJSONSerialization itself is thread safe. Calling it from multiple threads is fine (with the obvious exception that you can't do something like call it passing a mutable data and then mutate that data simultaneously).
It would be great if you could write up a bug report for our documentation to get that clarified in the Thread Safety section.