V8 API Reference Guide for node.js v9.10.0 - v9.11.1
Static Public Member Functions | List of all members
v8::JSON Class Reference

#include <v8.h>

Static Public Member Functions

static V8_DEPRECATED ("Use the maybe version taking context", Local< Value > Parse(Local< String > json_string))
static V8_DEPRECATE_SOON ("Use the maybe version taking context", MaybeLocal< Value > Parse(Isolate *isolate, Local< String > json_string))
static V8_WARN_UNUSED_RESULT MaybeLocal< ValueParse (Local< Context > context, Local< String > json_string)
static V8_WARN_UNUSED_RESULT MaybeLocal< StringStringify (Local< Context > context, Local< Object > json_object, Local< String > gap=Local< String >())

Detailed Description

A JSON Parser and Stringifier.

Member Function Documentation

static V8_WARN_UNUSED_RESULT MaybeLocal<String> v8::JSON::Stringify ( Local< Context context,
Local< Object json_object,
Local< String gap = LocalString >() 

Tries to stringify the JSON-serializable object |json_object| and returns it as string if successful.

json_objectThe JSON-serializable object to stringify.
The corresponding string if successfully stringified.
static v8::JSON::V8_DEPRECATED ( "Use the maybe version taking context"  ,
Local< Value >   ParseLocal< String > json_string 

Tries to parse the string |json_string| and returns it as value if successful.

json_stringThe string to parse.
The corresponding value if successfully parsed.

The documentation for this class was generated from the following file: