MaheshDigarse
MaheshDigarse

Reputation: 17

Parsing Wordpress Json Output

I want to parse this I tried almost everything but I couldn't understand this , I m getting this from WordPress database table wp_postmeta. Tried - unserialize , serialize, json_encode

string(303) "s:294:"a:1:{i:2364;a:1:{s:9:"schedules";a:1:{s:13:"578db85b83681";a:5:{s:13:"minutes_start";s:3:"540";s:11:"minutes_end";s:4:"1020";s:5:"weeks";a:6:{i:0;s:2:"on";i:1;s:2:"on";i:2;s:2:"on";i:3;s:2:"on";i:4;s:2:"on";i:6;s:2:"on";}s:10:"date_start";s:10:"07/18/2016";s:8:"date_end";s:10:"09/30/2016";}}}}";"

Upvotes: 1

Views: 241

Answers (1)

JorgeObregon
JorgeObregon

Reputation: 3320

Try unserialize(). This worked.

Upvotes: 1

Related Questions