| 35 | } |
| 36 | |
| 37 | const char* json_node::get_text() const |
| 38 | { |
| 39 | if (node_me_->text) { |
| 40 | if (ACL_VSTRING_LEN(node_me_->text) > 0) { |
| 41 | return acl_vstring_str(node_me_->text); |
| 42 | } else { |
| 43 | return ""; |
| 44 | } |
| 45 | } else { |
| 46 | return NULL; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | json_node* json_node::get_obj() const |
| 51 | { |