From 59e51bf811a5907983b84f3e2ed14e47a7210e75 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 26 Mar 2024 13:31:10 +0100 Subject: add yaml serialization support (#3) this change adds serialization of payloads as YAML, but not parsing. The implementation is somewhat based on the JSON path, and may be collapsed eventually as it is possible to serialize JSON format using the same code it also separates out the JSON serialization into a separate file for ease of maintenance any HTTP request response may be formatted as yaml by using a `.yaml` suffix or an `Accept: text/yaml` header --- src/zencore/zencore.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zencore/zencore.cpp') diff --git a/src/zencore/zencore.cpp b/src/zencore/zencore.cpp index b80b1d280..c97f5e5ca 100644 --- a/src/zencore/zencore.cpp +++ b/src/zencore/zencore.cpp @@ -160,6 +160,8 @@ zencore_forcelinktests() zen::uson_forcelink(); zen::usonbuilder_forcelink(); zen::usonpackage_forcelink(); + zen::cbjson_forcelink(); + zen::cbyaml_forcelink(); zen::workthreadpool_forcelink(); } } // namespace zen -- cgit v1.2.3