Sign in
fuchsia
/
third_party
/
json
/
refs/heads/feature/allocators
/
.
/
doc
/
examples
/
basic_json__CompatibleStringType.cpp
blob: a0f3b4f67226867c1d20ae74133736d167f19072 [
file
] [
log
] [
blame
]
#include
<json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// create a string value
std
::
string s
=
"The quick brown fox jumps over the lazy dog."
;
// create a JSON string value
json j
=
s
;
// serialize the JSON string
std
::
cout
<<
j
<<
'\n'
;
}