Raised This Month: $12 Target: $400
 3% 

Module: Parser (JSON Reader) Win32


Post New Thread Reply   
 
Thread Tools Display Modes
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 04-08-2014 , 22:54   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #11

Quote:
Originally Posted by claudiuhks View Post
Well, I don't really want to copy someone's code. I only wanted a basic JSON reader. Why should I link some already existing natives to a module? Better to use Exolent's existing code if you want to do more than this module can do.

Anyways, I still don't understand what Ovidius meant. Don't tell me you want to parse {"a":1,"b":2,"c":["x","y","z"]} string since this line can be found into a file.
I think he wants to parse a string from memory.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 04-09-2014 , 13:07   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #12

Quote:
Originally Posted by claudiuhks View Post
Well, I don't really want to copy someone's code. I only wanted a basic JSON reader. Why should I link some already existing natives to a module? Better to use Exolent's existing code if you want to do more than this module can do.

Anyways, I still don't understand what Ovidius meant. Don't tell me you want to parse {"a":1,"b":2,"c":["x","y","z"]} string since this line can be found into a file.
Avoiding module calls? lol

And yes, i'm telling you to parse a json string, because IT WONT BE ALWAYS ON A FILE, what about if you get a json string from a mysql query, or a maybe socket data gotten from a website? That would be better than parsing a file, or you're guessing that I must write that line on a file and later getting it with this? But well, it's an idea, a great one
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 04-09-2014 , 15:30   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #13

claudiuhks, you can get json response from webservices, data stored in database, sockets, etc

No tonly files as you can see
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-09-2014 , 18:12   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #14

Thank you for your opinions, will update ASAP.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 04-10-2014 , 05:58   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #15

Quote:
Originally Posted by meTaLiCroSS View Post
And yes, i'm telling you to parse a json string, because IT WONT BE ALWAYS ON A FILE, what about if you get a json string from a mysql query, or a maybe socket data gotten from a website? That would be better than parsing a file, or you're guessing that I must write that line on a file and later getting it with this? But well, it's an idea, a great one
Exactly.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-25-2022 , 03:17   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #16

Quote:
Originally Posted by meTaLiCroSS View Post
Avoiding module calls? lol

And yes, i'm telling you to parse a json string, because IT WONT BE ALWAYS ON A FILE, what about if you get a json string from a mysql query, or a maybe socket data gotten from a website? That would be better than parsing a file, or you're guessing that I must write that line on a file and later getting it with this? But well, it's an idea, a great one

Hi, i want to ask if the module have been updated to work with this request ? Thank you.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 04-25-2022 , 04:20   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #17

Quote:
Originally Posted by Craxor View Post
Hi, i want to ask if the module have been updated to work with this request ? Thank you.
The JSON module included in 1.9 or later should be able to do so.
PHP Code:
native JSON:json_parse(const string[], bool:is_file falsebool:with_comments false)
/**
* Parses JSON string or a file that contains JSON.
*
* @note                    Needs to be freed using json_free() native.
*
* @param string            String to parse
* @param is_file           True to treat string param as filename, false otherwise
* @param with_comments     True if parsing JSON includes comments (it will ignore them), false otherwise
*
* @return                  JSON handle, Invalid_JSON if error occurred
*/ 
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 04-25-2022 , 04:30   Re: Module: Parser (JSON Reader) Win32
Reply With Quote #18

I mean if the module have been updated , i wanna Parsr arguments from an Curl Request and retrieve the info i needed , the native your presnted would work to achieve my goal? How can i use the native is included in amxx default, in this thread module or another module please be descriptive , thanks ;d
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
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 11:51.


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