Practice · 1 of 3
camelCase Round Trip
CHALLENGE
Difficulty: intermediate+25 XP
Implement the OrderService: SerializeOrder produces camelCase JSON ("orderId", "orderTotal"); DeserializeOrder parses both exact-camelCase and PascalCase JSON (case-insensitive on deserialize).
``csharp
public sealed record Order(int OrderId, decimal OrderTotal);
static string SerializeOrder(Solution.Order order);
static Solution.Order? DeserializeOrder(string json);
``
Press Submit to check your solution.
Back to lesson: Practice: JSON Practice: Options, Converters, Boundaries