[#nlohmann-operator_lshift-05]
= xref:nlohmann.adoc[nlohmann]::operator&lt;&lt;
:relfileprefix: ../
:mrdocs:

Left shift operators

== Synopses

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

deserialize from stream


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
std::istream&
xref:nlohmann/operator_lshift-01.adoc[operator&lt;&lt;](
    xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]& j,
    std::istream& i);
----

[.small]#xref:nlohmann/operator_lshift-01.adoc[_» more&period;&period;&period;_]#

serialize to stream


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
xref:nlohmann/operator_lshift-0e.adoc[operator&lt;&lt;](
    std::ostream& o,
    xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json] const& j);
----

[.small]#xref:nlohmann/operator_lshift-0e.adoc[_» more&period;&period;&period;_]#

write string representation of the JSON pointer to stream


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
operator&lt;&lt;(
    std::ostream& o,
    xref:nlohmann/json_pointer.adoc[json&lowbar;pointer] const& ptr);
----

[.small]#[_» more&period;&period;&period;_]#

deserialize from stream


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
std::istream&
xref:nlohmann/operator_lshift-020.adoc[operator&lt;&lt;](
    xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json&lt;&gt;]& j,
    std::istream& i);
----

[.small]#xref:nlohmann/operator_lshift-020.adoc[_» more&period;&period;&period;_]#

serialize to stream


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::ostream&
xref:nlohmann/operator_lshift-022.adoc[operator&lt;&lt;](
    std::ostream& o,
    xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json&lt;&gt;] const& j);
----

[.small]#xref:nlohmann/operator_lshift-022.adoc[_» more&period;&period;&period;_]#

== Return Value

* the stream _i_
* the stream _o_

== Parameters

[cols="1,4"]
|===
| Name| Description
| *j*
| JSON value to deserialize into
| *i*
| stream to deserialize from
| *o*
| stream to serialize to
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
