![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
hazelcast_json_value is a wrapper for Json formatted strings. More...
#include <hazelcast_json_value.h>
Public Member Functions | |
hazelcast_json_value (std::string json_string) | |
Create a hazelcast_json_value from a string. More... | |
const std::string & | to_string () const |
This method returns a Json representation of the object. More... | |
bool | operator== (const hazelcast_json_value &rhs) const |
bool | operator!= (const hazelcast_json_value &rhs) const |
bool | operator< (const hazelcast_json_value &rhs) const |
Friends | |
std::ostream HAZELCAST_API & | operator<< (std::ostream &os, const hazelcast_json_value &value) |
hazelcast_json_value is a wrapper for Json formatted strings.
It is preferred to store hazelcast_json_value instead of std::string for Json formatted strings. Users can run predicates and use indexes on the attributes of the underlying Json strings.
hazelcast_json_value is queried using Hazelcast's querying language. See query::Predicate.
In terms of querying, numbers in Json strings are treated as either
or
. Strings, bools and NULL are treated as their C++ counterparts.
hazelcast_json_value keeps given string as it is.
Definition at line 47 of file hazelcast_json_value.h.
hazelcast::client::hazelcast_json_value::hazelcast_json_value | ( | std::string | json_string | ) |
Create a hazelcast_json_value from a string.
This method does not the check validity of the underlying Json string. Invalid Json strings may cause wrong results in queries.
jsonString | The json string |
Definition at line 48 of file serialization.cpp.
const std::string & hazelcast::client::hazelcast_json_value::to_string | ( | ) | const |
This method returns a Json representation of the object.
Definition at line 53 of file serialization.cpp.