| 128 | #endif |
| 129 | |
| 130 | static int acl_cppjson_test(const acl::string& data, int count) { |
| 131 | int i; |
| 132 | |
| 133 | for (i = 0; i < count; i++) { |
| 134 | acl::json json(data); |
| 135 | //json.update(data); |
| 136 | if (!json.finish()) { |
| 137 | printf("acl cppjson: invalid json\r\n"); |
| 138 | break; |
| 139 | } |
| 140 | //json.reset(); |
| 141 | } |
| 142 | |
| 143 | return i; |
| 144 | } |
| 145 | |
| 146 | static int acl_cjson_test(const acl::string& data, int count) { |
| 147 | int i; |