[BUGFIX] change in json_decode prototype to avoir ptree ptr and potential segfaults.