Well-structured helpers for serializing commonly encountered structures to JSON
