Thread: Jansson wrapper
View Single Post
Author Message
exeorb
Junior Member
Join Date: Jul 2014
Old 07-20-2014 , 23:00   Jansson wrapper
Reply With Quote #1

This module is SMJansson (https://github.com/thraaawn/SMJansson) wrapper to AMXX

current version 1.3

NO STL
NO C++11



Installation

  1. Download `json.zip`
  2. Extract it in your `amxmodx` directory
  3. Add `json` in your `modules.ini`
  4. for test plugin add in your `plugins.ini`
Examples

PHP Code:
        new any:error 0
        
new JsonHandle:jroot json_object()

        
error += !json_object_set_new(jroot"1233"json_object())
        
error += !json_object_clear(jroot)
        
error += !(json_object_size(jroot) == 0)

        
destroy_json(jroot

some issues

  • Can anybody compile it for windows and mac
  • Help with adding more test

source you can find
https://github.com/exeorb/Amx_Json

or here

Attached Files
File Type: zip json.zip (119.8 KB, 339 views)
File Type: zip json_source.zip (130.2 KB, 268 views)

Last edited by exeorb; 09-21-2014 at 09:31.
exeorb is offline