json.extract! command, :id, :name, :datatype_id, :created_at, :updated_at json.url command_url(command, format: :json)