nlohmann::operator<<

serialize to stream

Synopsis

Declared in <nlohmann/json.hpp>

std::ostream&
operator<<(
    std::ostream& o,
    basic_json<> const& j);

NOTE

This function is a hidden friend of basic_json<>, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

the stream o

Parameters

NameDescription
ostream to serialize to
jJSON value to serialize