You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed when using the tool today from this URL https://json2csharp.com/json-to-csharp that the JsonPropertyAttributes are no longer being added to the output C# Code.
This was working yesterday. I noticed that a PR/13 branch was merged in yesterday.
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Class1 {
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("user_id")]
public string UserId { get; set; }
[JsonProperty("created_at")]
public string CreatedAt { get; set; }
[JsonProperty("updated_at")]
public string UpdatedAt { get; set; }
}
public class Root {
[JsonProperty("Class1")]
public Class1 Class1 { get; set; }
}
But what I get is this:
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Class1 {
public int Id { get; set; }
public string UserId { get; set; }
public string CreatedAt { get; set; }
public string UpdatedAt { get; set; }
}
public class Root {
public Class1 Class1 { get; set; }
}
Thanks
The text was updated successfully, but these errors were encountered:
Hi
I noticed when using the tool today from this URL https://json2csharp.com/json-to-csharp that the JsonPropertyAttributes are no longer being added to the output C# Code.
This was working yesterday. I noticed that a PR/13 branch was merged in yesterday.
So with this example JSON
I would expect to see this response:
But what I get is this:
Thanks
The text was updated successfully, but these errors were encountered: