Move parsing to  service, adding a json api to that service.