JSFiddle - React, Tailwind, and code Playground
by pratik24
JavaScript
var newSession=[{"Identifier":"0","Label":"Global Period 2013 10 Day","Categories":"Standard","UpdatedBy":"Lnolan","UpdatedAt":"01-02-2013","RefId":"0","ComboEditType":"0","CPTs":["99202","99205"],"ActionMessage":"PQRS Form","Message":"asdfsdf","Combiner":[]}];
var JSONRules={"Identifier":"34","Label":"Day","Categories":"Stanard","UpdatedBy":"Llan","UpdatedAt":"01-02-2013","RefId":"0","ComboEditType":"0","CPTs":["99202"],"ActionMessage":"PQRS Form","Message":"asdfsdf","Combiner":[]};
console.log("get new session"+newSession);
newSession[0]=JSONRules;
console.log("this is the replace session"+newSession);