add json_decode_string for use by C callers