We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <amxmodx> #include <json> #include <grip> #pragma ctrlchar '\' new const g_sJSON[] = "{ }"; public plugin_init() { ///// TEST #1 (native JSON) new JSON:pObj = json_parse(g_sJSON); server_print(" [Method #1]: json_object_has_value():%i", json_object_has_value(pObj, "someKey") ); ///// TEST #2 (GRip JSON) new sErrBuffer[128]; new GripJSONValue:pObj1 = grip_json_parse_string(g_sJSON, sErrBuffer, charsmax(sErrBuffer)); server_print(" [Method #2]: grip_json_object_has_value():%i", grip_json_object_has_value(pObj1, "someKey") ); }
The text was updated successfully, but these errors were encountered:
but
will work
[Method #1]: json_object_has_value():1 [Method #2]: grip_json_object_has_value():1
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: