JSON write value. More...
#include <json.h>
Public Member Functions | |
| type | t () const |
| wvalue (std::vector< wvalue > &r) | |
| wvalue (const rvalue &r) | |
| Create a write value from a read value (useful for editing JSON strings). | |
| wvalue (const wvalue &r) | |
| wvalue (wvalue &&r) | |
| wvalue & | operator= (wvalue &&r) |
| void | clear () |
| Used for compatibility, same as reset() | |
| void | reset () |
| wvalue & | operator= (std::nullptr_t) |
| wvalue & | operator= (bool value) |
| wvalue & | operator= (double value) |
| wvalue & | operator= (unsigned short value) |
| wvalue & | operator= (short value) |
| wvalue & | operator= (long long value) |
| wvalue & | operator= (long value) |
| wvalue & | operator= (int value) |
| wvalue & | operator= (unsigned long long value) |
| wvalue & | operator= (unsigned long value) |
| wvalue & | operator= (unsigned int value) |
| wvalue & | operator= (const char *str) |
| wvalue & | operator= (const std::string &str) |
| wvalue & | operator= (std::vector< wvalue > &&v) |
| template<typename T > | |
| wvalue & | operator= (const std::vector< T > &v) |
| wvalue & | operator[] (unsigned index) |
| int | count (const std::string &str) |
| wvalue & | operator[] (const std::string &str) |
| std::vector< std::string > | keys () const |
| std::size_t | size () const |
| If the wvalue is a list, it returns the length of the list, otherwise it returns 1. | |
| size_t | estimate_length () const |
| Returns an estimated size of the value in bytes. | |
| std::string | dump () const |
Public Member Functions inherited from crow::returnable | |
| virtual std::string | dump () const =0 |
| returnable (std::string ctype) | |
Friends | |
| class | crow::mustache::template_t |
Additional Inherited Members | |
Public Attributes inherited from crow::returnable | |
| std::string | content_type |
JSON write value.
Value can mean any json value, including a JSON object. Write means this class is used to primarily assemble JSON objects using keys and values and export those into a string.
|
inlinevirtual |
Implements crow::returnable.