MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / encode_json

Function encode_json

include/jsoncons/encode_json.hpp:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276template <typename... Args>
277void encode_json(Args&& ... args)
278{
279 auto result = try_encode_json(std::forward<Args>(args)...);
280 if (!result)
281 {
282 JSONCONS_THROW(ser_error(result.error()));
283 }
284}
285
286template <typename... Args>
287void encode_json_pretty(Args&& ... args)

Calls 3

try_encode_jsonFunction · 0.85
ser_errorClass · 0.85
errorMethod · 0.80

Tested by

no test coverage detected