Sign in
fuchsia
/
third_party
/
json
/
4f8fba14066156b73f1189a2b8bd568bde5284c5
/
.
/
doc
/
examples
/
operator_literal_json.cpp
blob: 2ec008eb49a02ccce56f691fb855436298c41a22 [
file
] [
log
] [
blame
]
#include
<iostream>
#include
<iomanip>
#include
<nlohmann/json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
json j
=
R
"( {"
hello
": "
world
", "
answer
": 42} )"
_json
;
std
::
cout
<<
std
::
setw
(
2
)
<<
j
<<
'\n'
;
}