blob: 903aeb6bb1e856618cc97b72ed568575a07a5979 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UTIL_JSON_JSON_SERIALIZATION_H_
#define UTIL_JSON_JSON_SERIALIZATION_H_
#include <string>
#include "absl/strings/string_view.h"
#include "json/value.h"
namespace openscreen {
template <typename T>
class ErrorOr;
namespace json {
ErrorOr<Json::Value> Parse(absl::string_view value);
ErrorOr<std::string> Stringify(const Json::Value& value);
} // namespace json
} // namespace openscreen
#endif // UTIL_JSON_JSON_SERIALIZATION_H_