Reputation: 791
I'm using the OData.net client and consuming a service that uses the "$format" query string parameter to switch the layout of how the JSON data is returned.
I am unable to pass this parameter to the context. Using .AddQueryOption("$format", "CustomJSON") yields and error to set the format in the context object but there are no setters anywhere in the format object.
The format coming back is proper JSON, is there a way to have OData.net send a $format parameter and use the JSON parser on the results?
Upvotes: 0
Views: 194
Reputation: 415
OData client doesn't support custom format. So you cannot send the request by AddQueryOption("$format", "CustomJson").
Upvotes: 1