Add two additional functions to json-c compat api