userver
C++ Async Framework
Documentation
API Groups
Namespaces
Reference
Class List
Class Index
File List
Macros
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
samples/json2yaml/unittests/json2yaml_test.cpp
#include <json2yaml.hpp>
#include <gtest/gtest.h>
TEST(Json2Yaml, Basic) {
namespace
formats
= USERVER_NAMESPACE::formats;
auto
json =
formats::json::FromString
(R
"({"key": 42})");
auto
yaml = json.ConvertTo<
formats::yaml::Value
>();
EXPECT_EQ(yaml[
"key"
].As<int>(), 42);
}
Docs version:
v1.0
,
v2.0
,
trunk/develop
Generated on Mon Mar 31 2025 22:24:00 for userver by
Doxygen
1.13.2