work around if json has been generated by xy.to_s.to_json. Seems to happen somewhere