Updated API Reference (markdown)

Benoît Blanchon
2016-04-28 08:05:49 +02:00
parent 35726fda4d
commit e278e4f895

@@ -821,6 +821,47 @@ const char* value2 = object.get<const char*>("toto"); // returns NULL
```
### JsonObject::measureLength()
##### Description
Gets the length of string produced by `JsonObject::printTo()`.
This can be very handy to fill the `Content-Length` of an HTTP request or response.
##### Return value
The number of characters in the JSON string that would be generated by `JsonObject::printTo()`.
It doesn't include the zero-terminator.
##### Signature
```c++
size_t measureLength() const
```
### JsonObject::measurePrettyLength()
##### Description
Gets the length of string produced by `JsonObject::prettyPrintTo()`.
##### Return value
The number of characters in the JSON string that would be generated by `JsonObject::prettyPrintTo()`.
It doesn't include the zero-terminator.
##### Signature
```c++
size_t measurePrettyLength() const
```
### JsonObject::operator[]
##### Description