fix json spec in phantomjs