// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "type.h" #include #include #include namespace vespalib { class Slime; } namespace vespalib::slime { struct Inspector; struct JsonFormat { static void encode(const Inspector &inspector, Output &output, bool compact); static void encode(const Slime &slime, Output &output, bool compact); static size_t decode(Input &input, Slime &slime); static size_t decode(const Memory &memory, Slime &slime); }; } // namespace vespalib::slime