I was also bitten by this. I was trying to use JsonServiceClient (for
the first time) on the following data (from
http://gdata.youtube.com/feeds/api/users/ruigodinholopes/playlists?v=2&alt=jsonc):
{
apiVersion: "2.0"
data: {
...
and the first thing I've written:
[DataContract]
public class PlayListsResponse
{
[DataMember(Name = "apiVersion")]
public string ApiVersion { get; set; }
...
Which does not work unless I also camelCase the properties, which IMHO
is an odd thing to do in C# code.
Is there other way to define the mapping of the JSON property?
Best regards,
Rui Lopes