adding code for newtonsoft