convert story XML to json for use on load