Force.com-Toolkit-for-NET
Force.com-Toolkit-for-NET copied to clipboard
Raw Json
how would you get just the raw json that is returned from a query and not a typed object
@aday12345, can you explain the use case here? Do you want the raw query response as json?
public class QueryResult<T>
{
[JsonProperty(PropertyName = "nextRecordsUrl")]
public string NextRecordsUrl { get; set; }
[JsonProperty(PropertyName = "totalSize")]
public int TotalSize { get; set; }
[JsonProperty(PropertyName = "done")]
public bool Done { get; set; }
[JsonProperty(PropertyName = "records")]
public List<T> Records { get; set; }
}
Or do you just want the raw <T> as a json string?