javascript how convert api response to json code example Example: json_decode javascript JSON.parse(jsonToDecode)