From: erickson Date: Thu, 3 Mar 2005 16:34:06 +0000 (+0000) Subject: fixed logic error in message building. we now dynamically parse the json X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ce3c41ddec818cc49338df80d7b406e074820fb;p=working%2FOpenSRF.git fixed logic error in message building. we now dynamically parse the json string held in the result content node instead of making it a string git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@162 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/osrf_message.c b/src/libstack/osrf_message.c index 40067ff..3ccb954 100644 --- a/src/libstack/osrf_message.c +++ b/src/libstack/osrf_message.c @@ -480,7 +480,7 @@ int osrf_message_from_xml( char* xml, osrf_message* msgs[] ) { xmlChar* r_name = xmlGetProp( result_nodes, BAD_CAST "name" ); if(r_name) { if( !strcmp((char*)r_name,"oilsScalar") && result_nodes->children->content ) - new_msg->result_content = json_object_new_string( result_nodes->children->content ); + new_msg->result_content = json_tokener_parse(result_nodes->children->content); xmlFree(r_name); } }