blob: 0e8ed921e57e68bf71bcbf323d3747929239be19 [file] [log] [blame]
// Copyright 2016 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 JSONParser_h
#define JSONParser_h
#include "platform/PlatformExport.h"
#include "platform/wtf/text/WTFString.h"
#include <memory>
namespace blink {
class JSONValue;
PLATFORM_EXPORT std::unique_ptr<JSONValue> ParseJSON(const String& json);
PLATFORM_EXPORT std::unique_ptr<JSONValue> ParseJSON(const String& json,
int max_depth);
} // namespace blink
#endif // JSONParser_h