data.toJSON() for response