v8  5.5.372(node7.10.1)
V8 is Google's open source JavaScript engine
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.

Definition at line 1692 of file v8.h.

Member Function Documentation

static V8_WARN_UNUSED_RESULT MaybeLocal<Value> Parse ( Local< Context context,
Local< String json_string 
)
static
static V8_WARN_UNUSED_RESULT MaybeLocal<String> Stringify ( Local< Context context,
Local< Object json_object,
Local< String gap = LocalString >() 
)
static

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

Parameters
json_objectThe JSON-serializable object to stringify.
Returns
The corresponding string if successfully stringified.
static V8_DEPRECATE_SOON ( "Use the maybe version taking context"  ,
MaybeLocal< Value >   ParseIsolate *isolate, Local< String > json_string 
)
static
static V8_DEPRECATED ( "Use the maybe version taking context"  ,
Local< Value >   ParseLocal< String > json_string 
)
static

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

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

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