• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UTIL_JSON_JSON_SERIALIZATION_H_
6 #define UTIL_JSON_JSON_SERIALIZATION_H_
7 
8 #include <string>
9 
10 #include "absl/strings/string_view.h"
11 #include "json/value.h"
12 #include "platform/base/error.h"
13 
14 namespace openscreen {
15 
16 namespace json {
17 
18 ErrorOr<Json::Value> Parse(absl::string_view value);
19 ErrorOr<std::string> Stringify(const Json::Value& value);
20 
21 }  // namespace json
22 }  // namespace openscreen
23 
24 #endif  // UTIL_JSON_JSON_SERIALIZATION_H_
25