refactor Json api and implement externalized configuration of JsonParser