forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode_json.h
More file actions
24 lines (18 loc) · 763 Bytes
/
node_json.h
File metadata and controls
24 lines (18 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SRC_INSPECTOR_NODE_JSON_H_
#define SRC_INSPECTOR_NODE_JSON_H_
#include "node/inspector/protocol/Protocol.h"
namespace node {
namespace inspector {
struct JsonUtil {
// Parse s JSON string into protocol::Value.
static std::unique_ptr<protocol::Value> ParseJSON(const uint8_t* chars,
size_t size);
static std::unique_ptr<protocol::Value> ParseJSON(const uint16_t* chars,
size_t size);
static std::unique_ptr<protocol::Value> parseJSON(const std::string_view);
static std::unique_ptr<protocol::Value> parseJSON(
v8_inspector::StringView view);
};
} // namespace inspector
} // namespace node
#endif // SRC_INSPECTOR_NODE_JSON_H_