From efc0927f4f7fa1160d2361a636b11cb5bbd82f51 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Sun, 31 May 2009 01:44:07 +0000 Subject: Expose encode/decode API. --- ext/json/php_json.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/json/php_json.h') diff --git a/ext/json/php_json.h b/ext/json/php_json.h index 72fd61fa77..e27d9f9676 100644 --- a/ext/json/php_json.h +++ b/ext/json/php_json.h @@ -40,6 +40,9 @@ ZEND_END_MODULE_GLOBALS(json) # define JSON_G(v) (json_globals.v) #endif +PHPAPI void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC); +PHPAPI void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long depth TSRMLS_DC); + #endif /* PHP_JSON_H */ /* -- cgit v1.2.1