Sounds like using JSON.NET (should already be included IIRC) to convert the C# object to the JSON representation might help you here, then: this method is, after all, manually serializing an object to JSON. It might also help you re-think the object structure to fix the Law of Demeter violations you have in the `foreach` loop (e.g., `item.Vote.Date`).