Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: extract parameter from json

Tiffany:

I want to extract the title and link parameters and display in console.log from the JSON that I receive when a Google Search API is called.

this is the results I get when I google search "Cats"

I want the result of "title: xxxxxxx, link: xxxxxxx"

so far this is what I have


var str = JSON.stringify(body);
var value = JSON.parse(str)

console.log('result' + str.title)

and I get result undefined

Thanks in advance.



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: extract parameter from json

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×