alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
496 stars 200 forks source link

Why check for Invalid_JSON? #682

Open In-line opened 5 years ago

In-line commented 5 years ago

Why check for Invalid_JSON? Other parts of API throw error on invalid json. Inconsistent for me. https://github.com/alliedmodders/amxmodx/blob/9417ec188de4c3ccb4c59dad9aa83801cb9bf979/plugins/include/json.inc#L49

SmileYzn commented 5 years ago

To not throw error on call json_get_type on invalid json.