Raised This Month: $32 Target: $400
 8% 

Jansson wrapper


Post New Thread Reply   
 
Thread Tools Display Modes
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, 336 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
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-21-2014 , 06:06   Re: Jansson wrapper
Reply With Quote #2

Really nice, I'm going to test it soon.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 07-23-2014 , 04:26   Re: Jansson wrapper
Reply With Quote #3

Windows version please.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 07-24-2014 , 02:38   Re: Jansson wrapper
Reply With Quote #4

I have next questions :
Why AMX Mod X Development Team implemented some classes and containers like string, vector, stack and so on, why are you not using std containers? I implemented some in university but std vector has more good allocator system

p.s. sorry for my english i tried

Last edited by exeorb; 07-25-2014 at 22:30.
exeorb is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 07-29-2014 , 02:22   Re: Jansson wrapper
Reply With Quote #5

Here is Windows version compiled by Lev at AGHL.ru. v1.2

exeorb, thanks for this module. Finally found working JSON functions for AMXX . Its very usefully to manipulate or save data.
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 08-11-2014 at 06:57. Reason: update v1.2
GordonFreeman (RU) is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 07-29-2014 , 09:55   Re: Jansson wrapper
Reply With Quote #6

It's my pleasure. Is it last version? Because first was very "raw" (and the last is not good enough )

Last edited by exeorb; 07-29-2014 at 10:04.
exeorb is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 07-29-2014 , 23:36   Re: Jansson wrapper
Reply With Quote #7

This is v1.1. Lev fixed work with json_stringn.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
exeorb
Junior Member
Join Date: Jul 2014
Old 07-29-2014 , 23:59   Re: Jansson wrapper
Reply With Quote #8

Oh. see v 1.2. json_stringn and a lot of functions (like json_iter is supported now). please compile it because i don't like windows (sorry bill). It will be better if you give msvc folder

Last edited by exeorb; 07-30-2014 at 00:01.
exeorb is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 07-30-2014 , 00:10   Re: Jansson wrapper
Reply With Quote #9

You can contact Lev at AGHL.ru.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-05-2014 , 14:40   Re: Jansson wrapper
Reply With Quote #10

Can this module read JSON files on external webhost(HTTP Server)? If so, I will try to compile it for Windows, because I will for sure use it in my plugins.
klippy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:43.


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