There is no information on how to do this in the documentations and I've tried everything I can think of with no success.
Can someone show me how it can be done?
for instance Id like to have something like...
[JsonObject] public class Location { [JsonProperty] public String Name { get; set; } [JsonProperty] public String FoodType { get; set; } [JsonProperty] public Address address { get; set; }
[JsonObject] public class Address { [JsonProperty] public string address; [JsonProperty] public string City; [JsonProperty] public string State; [JsonProperty] public string Zip; } }
but then I get an error along the lines of "Don't know about Location+Address"
Brad Hughes
There is no information on how to do this in the documentations and I've tried everything I can think of with no success.
Can someone show me how it can be done?
for instance Id like to have something like...
[JsonObject]
public class Location
{
[JsonProperty]
public String Name { get; set; }
[JsonProperty]
public String FoodType { get; set; }
[JsonProperty]
public Address address { get; set; }
[JsonObject]
public class Address
{
[JsonProperty]
public string address;
[JsonProperty]
public string City;
[JsonProperty]
public string State;
[JsonProperty]
public string Zip;
}
}
but then I get an error along the lines of "Don't know about Location+Address"