Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress How to Build a WordPress Plugin Connecting WordPress Plugins with 3rd Party APIs Parsing JSON with PHP Quiz

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,413 Points

Wordpress parse JSON function

Does anyone know which function to use to parse JSON in Wordpress?

I thought that it was either wp_remote_get(); or json_decode();, but neither will let me pass the quiz that I am taking.

Thanks!

1 Answer

Hi Juliette,

As far as im aware when I did the course on creating a plugin for the WordPress badges I used json_decode()

Did you try passing the answers without the semi-colon?

So answer = json_decode() Not = json_decode();

Craig

It gets me every time lol glad you got it solved :)