SourceMod JSON Extension
What is this?
This is a SourceMod extension that provides some methods for manipulating JSON data
Features
- Supports decoding and encoding (also with pretty format)
- Relies on Parson which is lighweight and simple JSON library written in C
- Supports dot notation (Values can be accessed by typing objectA.objectB.value)
- Allows us to iterate through arrays and objects
How to build this?
clone project
mkdir build && cd build
python ../configure.py --enable-optimize --symbol-files --sm-path=YOU_SOURCEMOD_PATH
ambuild
Native
- see json.inc
Binary files
TODO
- windows support
- Int64 support
- example script
Known issues
- This is my first porting an extension, so it might have a lot of issues
- Some functions will crash the server if passed incorrect data
- incompatible with rip-ext due to naming conflict