This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Retrieving data from json format.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mikka
Member
Join Date: Dec 2018
Old 10-06-2023 , 13:20   Retrieving data from json format.
Reply With Quote #1

Due to the fact that there is no documentation that is understandable enough for me, I am writing to you for help.

Code:
{
    "Code": "ZAQWSX",
    "szData": [
        {
            "Number": 6300,
            "NPrice": 1,
            "BPrice": 0.5
        },
        {
            "Number": 7300,
            "NPrice": 2,
            "BPrice": 1.75
        }
}
After format in amxx:
Code:
new json[] = {"{ "Code": "ZAQWSX", "szData": [ { "Number": 6300, "NPrice": 1, "BPrice": 0.5 }, { "Number": 7300, "NPrice": 2, "BPrice": 1.75 } }"}
How can I retrieve all objects from the szData field?
Mikka is offline
 



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 16:42.


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