Size: 686 bytes.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// cs/net/json/serialize.hh
#ifndef CS_NET_JSON_SERIALIZE_HH
#define CS_NET_JSON_SERIALIZE_HH

#include <iostream>

#include "cs/net/json/object.hh"

namespace cs::net::json {
std::ostream& operator<<(std::ostream& os,
                         const Object& object);

std::ostream& SerializeObject(std::ostream& os,
                              const Object& object);

std::string SerializeObject(const Object& object,
                            unsigned int indent);

std::ostream& SerializeObjectPrettyPrintRecurse(
    std::ostream& os, const Object& object,
    unsigned int indent, unsigned int initial_indent);

}  // namespace cs::net::json

#endif  // CS_NET_JSON_SERIALIZE_HH
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-3:8080 in 4ms.