Sign in
fuchsia
/
third_party
/
json
/
refs/heads/upstream/gh-pages
/
.
/
examples
/
ordered_json.cpp
blob: effad530c478e95d885903ad51293c7fc4ed97b3 [
file
] [
log
] [
blame
]
#include
<iostream>
#include
<nlohmann/json.hpp>
using
ordered_json
=
nlohmann
::
ordered_json
;
int
main
()
{
ordered_json j
;
j
[
"one"
]
=
1
;
j
[
"two"
]
=
2
;
j
[
"three"
]
=
3
;
std
::
cout
<<
j
.
dump
(
2
)
<<
'\n'
;
}