You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of building up the entire JSON object by hand, you may want to use
jshon to edit a template structure. This should simplify your code.
Here's an example. This takes this structure as input:
Hey, great job on this.
I'm trying to create what I believe would be a pretty simple json with nested objects very similar to Youtube's "add to playlist":
{
'snippet': {
'playlistId': '{PLAYLIST_ID}',
'resourceId': {
'kind': 'youtube#video',
'videoId': '{VIDEO_ID}'
}
'position': 0
}
}
However, I for the life of me can't get "playlistId" to be inside of "snippet". Is this possible with jshon? What am I missing?
Thanks!
The text was updated successfully, but these errors were encountered: