(light music)
- [Instructor] Ready to write code to process JSON data?
It's time for a challenge, in this challenge,
you'll write JavaScript to destringify an object
and an array.
And you'll also write JavaScript
to stringify an object and an array.
My start code includes two JavaScript files,
blog.js includes a posts, variable containing an array.
It also contains an article value containing an object.
Your challenge for this file is to write JavaScript code
that converts each value to a JSON string.
The other JavaScript file, issue.js contains a cue
variable containing a JSON string that encodes an array.
It also contains an item variable that contains
a JSON string that encodes an object, for this file,
your challenge is to write JavaScript code
that destringifies each value into a data structure
that you can work with in JavaScript.
This exercise should take you about five minutes.
When you're done join me in the next video,
and I'll walk you through how I approached it.