| 67 | } |
| 68 | |
| 69 | const acl_int64* json_node::get_int64() const |
| 70 | { |
| 71 | if (!is_number()) { |
| 72 | return NULL; |
| 73 | } |
| 74 | const char* txt = get_text(); |
| 75 | if (txt == NULL || *txt == 0) { |
| 76 | return NULL; |
| 77 | } |
| 78 | const_cast<json_node*>(this)->node_val_.n = acl_atoi64(txt); |
| 79 | return &node_val_.n; |
| 80 | } |
| 81 | |
| 82 | const double* json_node::get_double() const |
| 83 | { |