refactor: Implement JsonParser class in lib