Refactor: Changing parse method in JsonParser class