as JSON_BOOLs instead of requiring them to be encoded as
"t" or "f" strings.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13815
dcc99617-32d9-48b4-a31d-
7c20da2025e4
field_object,
(char*)oilsIDLFindPath("/%s/primarykey", field_object->classname)
);
+ } else if( JSON_BOOL == field_object->type ) {
+ if( jsonBoolIsTrue( field_object ) )
+ value = strdup( "t" );
+ else
+ value = strdup( "f" );
} else {
value = jsonObjectToSimpleString( field_object );
}
value = oilsFMGetString(
field_object,
(char*)oilsIDLFindPath("/%s/primarykey", field_object->classname)
- );
+ );
+ } else if( JSON_BOOL == field_object->type ) {
+ if( jsonBoolIsTrue( field_object ) )
+ value = strdup( "t" );
+ else
+ value = strdup( "f" );
} else {
value = jsonObjectToSimpleString( field_object );
if( field_object && JSON_NUMBER == field_object->type )