add json to xml library and store xml to local storage