remove dependency on newtonsoft.json in api