we also need to check if(!j_object) as per 
https://jansson.readthedocs.org/en/latest/tutorial.html