我将以下 json 数据作为海报正文的参数发送
zip='{"zipcode":"501234","cityname":"hyd","countyname" : "Poweshiek","statename" : "Iowa"}'&Accept=application%2Fjson
我收到错误
'
MultiJson::DecodeError`在此处输入代码`
743: 'zip='{"zipcode":"501234","cityname":"hyd","countyname" : "Poweshiek","statename" : "Iowa"}'&Accept=application%2Fjson' 处出现意外标记
Rails.root: e:/rails/vivadesi
' 下面是日志文件: '在 2012-04-05 07:31:17 +0530 解析请求参数时发生错误,为 127.0.0.1 开始 PUT "/orgs/updatezip.json?id=4f676eb33e454911a000aea1"。内容:
MultiJson::DecodeError (743: 'zip='{"zipcode":"501234","cityname":"hyd","countyname" : "Poweshiek","statename" : "Iowa"}'&Accept=应用程序%2Fjson'):
渲染 gem/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) 渲染 gem/ruby/1.9.1/gems/actionpack-3.1.0 /lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms) 在救援中渲染 gem/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb /布局(12.0毫秒)'