Rate This Document
Findability
Accuracy
Completeness
Readability

JsonElement::getAsString() const

Function Usage

Serializes a JsonElement node to a string and returns the string.

Function Syntax

String *JsonElement::getAsString() const;

Return Value

  • Success: a string obtained by serializing the node.
  • Failure: a null pointer if the JsonElement node is null.

You must use delete to release the returned pointer to the String structure.