AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [INC] sm-json (https://forums.alliedmods.net/showthread.php?t=306471)

clug 04-01-2018 12:50

[INC] sm-json
 
https://github.com/clugg/sm-json

Hi guys,
I wasn't happy with the current solutions for creating objects nor classes in SourcePawn, and didn't really love how the existing JSON extensions worked either. The git readme will give plenty of examples as to how it works, but I've done my best to follow the JSON standard (minus a few discrepancies - see readme for details).

Hopefully someone finds it as useful as I have - we've been running a stats plugin that builds JSON objects for everything without any noticeable performance hit (20 bots shooting non-stop handling player_hurt events).

Feedback is appreciated.

Thanks.

Drixevel 04-01-2018 15:23

Re: [INC] sm-json
 
I'll port one of my projects to use this, I"ll let you know how that goes. (looks very good)

OfficialSikari 05-16-2018 03:37

Re: [INC] sm-json
 
FYI, your string_helpers.inc conflicts with smlib include (String_StartsWith & String_EndsWith)

clug 09-03-2018 23:42

Re: [INC] sm-json
 
Quote:

Originally Posted by OfficialSikari (Post 2592399)
FYI, your string_helpers.inc conflicts with smlib include (String_StartsWith & String_EndsWith)

Thanks for that, fixed :)

ImACow 02-21-2020 05:46

Re: [INC] sm-json
 
Thanks for this!

clug 04-15-2020 04:06

Re: [INC] sm-json
 
Quote:

Originally Posted by ImACow (Post 2684592)
Thanks for this!

No worries! How are you finding it?

I have just released v3.0.0 which makes it a lot easier to convert between native arrays and JSON_Arrays, as well as a bunch of other things. Feedback is much appreciated.


All times are GMT -4. The time now is 07:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.