View Single Post
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-25-2022 , 04:20   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #17

Quote:
Originally Posted by Craxor View Post
Hi, i want to ask if the module have been updated to work with this request ? Thank you.
The JSON module included in 1.9 or later should be able to do so.
PHP Code:
native JSON:json_parse(const string[], bool:is_file falsebool:with_comments false)
/**
* Parses JSON string or a file that contains JSON.
*
* @note                    Needs to be freed using json_free() native.
*
* @param string            String to parse
* @param is_file           True to treat string param as filename, false otherwise
* @param with_comments     True if parsing JSON includes comments (it will ignore them), false otherwise
*
* @return                  JSON handle, Invalid_JSON if error occurred
*/ 
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline