diff --git a/example/traits/danielaparker-jsoncons.cpp b/example/traits/danielaparker-jsoncons.cpp index 5eac313ce..74a2be2eb 100644 --- a/example/traits/danielaparker-jsoncons.cpp +++ b/example/traits/danielaparker-jsoncons.cpp @@ -34,7 +34,8 @@ int main() { const auto decoded = jwt::decode(token); const auto array = traits::as_array(decoded.get_payload_claim("object").to_json()["api"]["array"]); - std::cout << "payload /object/api/array = " << array << std::endl; + std::cout << "payload /object/api/array = " << + jsoncons::pretty_print(traits::json(array)) << std::endl; jwt::verify() .allow_algorithm(jwt::algorithm::none{})