operator<< Operator (C++ REST SDK)

A standard std::ostream operator to facilitate writing JSON values to streams.

Warning

This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at https://casablanca.codeplex.com/documentation.

_ASYNCRTIMP utility::ostream_t& operator << (
   utility::ostream_t &os,
   const json::value &val
);

Parameters

  • os
    The output stream to write the JSON value to.

  • val
    The JSON value to be written to the stream.

Return Value

The output stream object

Requirements

Header: json.h

Namespace: web::json

See Also

Reference

web::json Namespace