Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
41 lines (32 loc) · 1.43 KB

README.md

File metadata and controls

executable file
·
41 lines (32 loc) · 1.43 KB

This project has been deprecated. The new project has moved to sm-ext-yyjson which is faster and more user-friendly.

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

Binary files

TODO

  • windows support
  • Int64 support
  • example script

NOTES

  • This is my first time dev the SM extension, so there may be many issues with it.
  • Some functions might cause the server to crash if incorrect parameters are passed.
  • Due to naming conflicts, it's incompatible with rip-ext.

Link