NDEVR
API Documentation
JSONToStringHelper< t_type >

Helper template for converting a JSON string value to a specific type. More...

Inheritance diagram for JSONToStringHelper< t_type >:
[legend]

Static Public Member Functions

static t_type Convert (const String &value)
 Converts a JSON string representation to the target type.

Detailed Description

template<class t_type>
class JSONToStringHelper< t_type >

Helper template for converting a JSON string value to a specific type.


Definition at line 49 of file JSONParser.h.

Member Function Documentation

◆ Convert()

template<class t_type>
t_type JSONToStringHelper< t_type >::Convert ( const String & value)
inlinestatic

Converts a JSON string representation to the target type.

Parameters
[in]valueThe JSON string to convert.
Returns
The converted value as t_type.

Definition at line 57 of file JSONParser.h.

References String::getAs().

Referenced by JSONNode::getAs().


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