A flag could make the response to stringify all data and include a header with the metadata for knowing what type is each field.