fixed logic error in message building. we now dynamically parse the json
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 3 Mar 2005 16:34:06 +0000 (16:34 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 3 Mar 2005 16:34:06 +0000 (16:34 +0000)
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

src/libstack/osrf_message.c

index 40067ff..3ccb954 100644 (file)
@@ -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);
                                                                }
                                                        }