내가 누구JSON
'[{"club_id":"19","club_name":"Al Lawrence","club_desc":"We welcome anyone who enjoys the camaraderie of competition at any level. Al currently coaches many Houston area runners ranging from elite to back-of-the-packers. Today the club still has a number of members who receive professional independent coaching from Al, but that certainly is not a requirement for membership in the Al Lawrence Running Club.","club_latitude":"29.770042","club_longitude":"-95.37","club_zip":"77001","club_member_size":"93","club_size":"s","club_type":"training","club_url":"http:\/\/www.alrcus.org\/","club_img":"1390975493.jpg","is_published":"1"},{"club_id":"20","club_name":"Bay Area Fit","club_desc":"Welcome to Houston FIT! We are a group of training partners and friends preparing together for a full or half marathon in 2013\/2014. Even if you\u2019ve never run a step before, training with our group will help you conquer mental and physical barriers you never thought possible.","club_latitude":"29.564405","club_longitude":"-95.091113","club_zip":"77058","club_member_size":"302","club_size":"l","club_type":"training","club_url":"http:\/\/www.houstonfit.com\/","club_img":"1390975687.jpg","is_published":"1"},{"club_id":"22","club_name":"Bay Area Running Club","club_desc":"Order now before the next HARRA race! Password texas. Color, size and logo location options available plus you can add BARC on the back for just $5 more. Flat shipping rate of $4.95 if you buy one or two singlets and no tax! Orders are shipped out 24-48 hours after purchase. ","club_latitude":"29.583945","club_longitude":"-95.033832","club_zip":"77586","club_member_size":"450","club_size":"l","club_type":"non-training","club_url":"http:\/\/www.barchouston.com\/","club_img":"1390989179.jpg","is_published":"1"},{"club_id":"29","club_name":"Houston Harriors","club_desc":"The 1st race of the HARRA 2014 Spring Series\r\nSaturday, February 22nd, 2014 Houston, Texas\r\nSponsored by the Houston Harriers","club_latitude":"29.733042110628393","club_longitude":"-95.33655524253845","club_zip":"77001","club_member_size":"0","club_size":"","club_type":"tranning","club_url":"http:\/\/www.houstonharriers.com\/","club_img":"1391078677.jpg","is_published":"1"}]'
내가 eval()
및 JSON.parse
에 의해 시도 JSON 문자열 다음 날 gauide 또는 나에게 해석의 적절한 방법을 제안 할 수 있습니다 JSON에 다음 문자열을 구문 분석하려고 할 때 문제가있는에 문자열을 구문 분석하는 방법 메서드가 발생하지만 오류가 발생합니다.
Uncaught SyntaxError: Unexpected token
그것은 배열입니다. 이것이 JSON.parse가 작동하지 않는 이유입니다. – Danny
@ 대니 - JSON은 최상위 수준에서 배열을 허용합니다. – Quentin
@ Quentin 아, 결코 그것을 알지 못했습니다. 그것을 알지 못했습니다. – Danny