mstch/test/data/grandparent_context.hpp

23 lines
1.3 KiB
C++
Raw Normal View History

2020-02-13 03:53:14 +08:00
const auto grandparent_context_data = mstch::map_wrapper{
{{"grand_parent_id", std::string{"grand_parent1"}},
{"parent_contexts",
mstch::array_wrapper{
{mstch::map_wrapper{
{{"parent_id", std::string{"parent1"}},
{"child_contexts",
mstch::array_wrapper{
{mstch::map_wrapper{
{{"child_id", std::string{"parent1-child1"}}}},
mstch::map_wrapper{
{{"child_id",
std::string{"parent1-child2"}}}}}}}}},
mstch::map_wrapper{
{{"parent_id", std::string{"parent2"}},
{"child_contexts",
mstch::array_wrapper{
{mstch::map_wrapper{
{{"child_id", std::string{"parent2-child1"}}}},
mstch::map_wrapper{
{{"child_id",
std::string{"parent2-child2"}}}}}}}}}}}}}};