json.extract! doodad, :id, :body, :user_id, :is_public, :created_at, :updated_at json.url doodad_url(doodad, format: :json)