Refactoring JsonReader