yajl_stdin_load_tree creates a tree structure in memory (inside the YAJL service program). It does a lot more than just simply read the JSON string into memory. Once loaded into the tree, it is no longer a string containing JSON, it is a bunch of data structures in memory that you can work with using other routines.
If your goal is to receive the JSON data and then just send it on to something else, there's no need to use YAJL at all. Just use QtmhRdStdin() (an IBM API) to get the original string into memory, and then you can send that string with HTTPAPI (or any other tool.)
If you need to do both parse/interpret the JSON and still send it on afterwards, then you might still use yajl_stdin_load_tree(), but use yajl_stringify() to get a JSON string from the data that you can send onward.
If your goal is to receive the JSON data and then just send it on to something else, there's no need to use YAJL at all. Just use QtmhRdStdin() (an IBM API) to get the original string into memory, and then you can send that string with HTTPAPI (or any other tool.)
If you need to do both parse/interpret the JSON and still send it on afterwards, then you might still use yajl_stdin_load_tree(), but use yajl_stringify() to get a JSON string from the data that you can send onward.
Comment