Loading...
Searching...
No Matches
v8-json.h
Go to the documentation of this file.
1// Copyright 2021 the V8 project 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 INCLUDE_V8_JSON_H_
6#define INCLUDE_V8_JSON_H_
7
8#include "v8-local-handle.h" // NOLINT(build/include_directory)
9#include "v8config.h" // NOLINT(build/include_directory)
10
11namespace v8 {
12
13class Context;
14class Value;
15class String;
16
21 public:
31 Local<Context> context, Local<String> json_string);
32
41 Local<Context> context, Local<Value> json_object,
43};
44
45} // namespace v8
46
47#endif // INCLUDE_V8_JSON_H_
Definition: v8-json.h:20
static MaybeLocal< String > Stringify(Local< Context > context, Local< Value > json_object, Local< String > gap=Local< String >())
static MaybeLocal< Value > Parse(Local< Context > context, Local< String > json_string)
Definition: v8-local-handle.h:258
Definition: v8-local-handle.h:619
Definition: libplatform.h:15
#define V8_EXPORT
Definition: v8config.h:762
#define V8_WARN_UNUSED_RESULT
Definition: v8config.h:637