Adds sanity check for json before creating the story