GoPxL SDK

- Home
- Files
- Namespace

template<typename T >

void Add | ( | const std::string & | path,
|  | const T & | val
| ) |  |

Adds value if not exists.

Version
  Introduced in 0.2.1.53

Parameters

  path | JSON pointer path of the new field to add. This path MUST begin with a "/" to be a proper JSON pointer path.
  val | Value to be stored. Must be valid JSON data type.

Exceptions

  GoJsonError | when handle cannot be unflatted.