Open theCrab opened 10 years ago
@mattetti after looking at your example, I see what's messing my object.
Any tips on how the INPUT service.params
section of a json_list
service looks like? Ex. below
describe_service "/json_list" do |service|
service.formats :json
service.response do |response|
response.array :people do |node|
node.integer :id
node.boolean :online
node.datetime :created_at
node.object :team do |team|
team.integer :id
team.float :score, :null => true
end
end
end
end
Hi When I run I get the
Invalid JSON response
. What am I doing wrong.I am expecting the response to be this or similar JSON. What is happened here.