Changed the JsonReader class to be thread-safe