added new issue http://projects.theforeman.org/issues/3230 for re-factoring JSON.parse