Parse json encoded by PHP
Hey team,
I'm trying to parse the next json that it's encoded in PHP, stored in a MySQL database, and loaded into a amxmodx plugin. The problem is I tried any parse json library i could find (not all for sure), but the best i could find. Do you have any advice or how can i parse the next json? Code:
Output: Code:
Code:
Code:
function create_players_json() { |
Re: Parse json encoded by PHP
|
Re: Parse json encoded by PHP
if you have any problem with amxmodx json library, post here
in your situation, first option will be to do what fysiks said second one would be to create a socket server on web side from which retrieve what data you need |
Re: Parse json encoded by PHP
Good morning,
I studied more in the library and get what I wanted. What I really needed was to parse from one json to another json and gather its information. The json: players_tree is uploaded only once into a very big variable and then disappears like magic. from this: Code:
this is the code I've used for this operation Code:
Code:
ID: 3 Sorry, for the topic, it was night and my brain was dying slowly and slowly. :) I hope community will find this helpful. Quote:
Upper was just one of the others that will come. |
Re: Parse json encoded by PHP
I'm not sure I understood anything in that post.
|
Re: Parse json encoded by PHP
Quote:
For the best view: Code:
The idea is that I started with the full json and then get the object value data at the first index, then the second, third... to ten It's like some parents that have friends that are parents who have children with custom values about themselves, like name, age, and hair color. You go to the first parent and ask about its children and the child information (object) is saved in another json handler, and then you start gathering its information. !! If I was asking just for the parent, I was gathering just the name of their child, not the information. I'm sure you are just ironic with that, but this will may help someone understand when they will find this topic in 2025 maybe :))? |
Re: Parse json encoded by PHP
Quote:
|
All times are GMT -4. The time now is 17:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.