Address JSON thread safety issues.