Link to home
Start Free TrialLog in
Avatar of Alex Lord
Alex Lord

asked on

Pulling json formatted data from table and accessing info within that data

How do i work with this data ?

User generated image
above is the column

below is the data structure in this column

User generated image
i am formatting it as json in the column but how do i access is on php from i pull it from the data and select the values of ids i want ?
Avatar of David Favor
David Favor
Flag of United States of America image

Do something like this...

$obj = json_decode($json);

Open in new window


Then access $obj data as a nested hash... maybe like...

$campaign = $obj->{"output"}->{"campaign"};

$obj->{"output"}->{"campaign"} = "new-campaign-name";

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial