I was trying search an image using this api . When I use "console.log( body )" it outputs the incoming information for that image which is a valid JSON . But when I try to parse is using JSON.parse(body) it give an error
"
SyntaxError: Unexpected token o
at Object.parse (native)
"
I was trying search an image using this api . When I use "console.log( body )" it outputs the incoming information for that image which is a valid JSON . But when I try to parse is using JSON.parse(body) it give an error " SyntaxError: Unexpected token o at Object.parse (native) "