change format of json in rspec test