| 24 | } |
| 25 | |
| 26 | static Builder buildObject(Options const* options) { |
| 27 | Builder b(options); |
| 28 | |
| 29 | b(Value(ValueType::Object)); |
| 30 | b.add("foo", Value(42)); |
| 31 | b.add("bar", Value("some string value")); |
| 32 | b.add("baz", Value(true)); |
| 33 | b.close(); |
| 34 | |
| 35 | return b; |
| 36 | } |
| 37 | |
| 38 | int main(int, char* []) { |
| 39 | VELOCYPACK_GLOBAL_EXCEPTION_TRY |