Sign in
flutter
/
third_party
/
json
/
refs/heads/views-test
/
.
/
docs
/
examples
/
operator_literal_json.cpp
blob: 84ca6297d4c2cc76a63c93ca1968d830d68b004f [
file
] [
log
] [
blame
] [
edit
]
#include
<iostream>
#include
<iomanip>
#include
<nlohmann/json.hpp>
using
json
=
nlohmann
::
json
;
using
namespace
nlohmann
::
literals
;
int
main
()
{
json j
=
R
"( {"
hello
": "
world
", "
answer
": 42} )"
_json
;
std
::
cout
<<
std
::
setw
(
2
)
<<
j
<<
'\n'
;
}