jsonParseString( "[]" );
...with the equivalent, and faster:
jsonNewObjectType( JSON_ARRAY );
M Open-ILS/src/c-apps/oils_dataloader.c
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14263
dcc99617-32d9-48b4-a31d-
7c20da2025e4
osrfLogDebug(OSRF_LOG_MARK, "Calling %s -> %s for %s", CSTORE, method_name, item->classname);
// make the param array
- jsonObject* params = jsonParseString("[]");
+ jsonObject* params = jsonNewObjectType( JSON_ARRAY );
jsonObjectSetIndex( params, 0, item );
jsonObjectSetIndex( params, 1, jsonParseString("{\"quiet\":\"true\"}") );