| 99 | }; |
| 100 | |
| 101 | static int rapidjson_test(const acl::string& in, int count) { |
| 102 | int i; |
| 103 | |
| 104 | for (i = 0; i < count; i++) { |
| 105 | MyHandler handler; |
| 106 | Reader reader; |
| 107 | StringStream ss(in.c_str()); |
| 108 | reader.Parse(ss, handler); |
| 109 | } |
| 110 | |
| 111 | return i; |
| 112 | } |
| 113 | #endif |
| 114 | |
| 115 | #ifdef HAS_JTJSON |