Why does parsing json have no effect?

Source: Internet
Author: User

  
   

The $json's content is about this:

{"pagination": {}, "meta": {"code": $}, "data": [{"Attribution": null, "tags": [], "type": "Image", "location": null, " Comments ": {" Count ": 0}," filter ":" Normal "," Created_time ":" 1453516817 "," link ":" https:\/\/www.instagram.com\/p\/ ba3xjwmp4ye\/"," likes ": {" Count ": 0}," Images ": {" Low_resolution ": {" url ":" https:\/\/scontent.cdninstagram.com\/ Hphotos-xpf1\/t51.2885-15\/s320x320\/e35\/12547507_218933238449715_1618422633_n.jpg "," width ": +," height ": 320} , "thumbnail": {"url": "Https:\/\/scontent.cdninstagram.com\/hphotos-xpf1\/t51.2885-15\/s150x150\/e35\/12547507_ 218933238449715_1618422633_n.jpg "," width ":" Max "," Height ":" Max "," Standard_resolution ": {" url ":" https:\/\/ Scontent.cdninstagram.com\/hphotos-xpf1\/t51.2885-15\/s640x640\/sh0.08\/e35\/12547507_218933238449715_ 1618422633_n.jpg "," width ": 640," height ": 640}}," Users_in_photo ": []," caption ": null," user_has_liked ": false," id ":" 1168506212405185694_2231334066 "," user ": {" username ":" Misery "," profile_picture ":" https:\/\/ scontent.cdninstagram.com\/hphotos-xta1\/t51.2885-19\/10684024_538087799681202_2023427205_a.jpg "," id ":" 2231334066 "," full_name ":" Misery "}},{" attribution ": null," tags ": []," Type ":" "image", "location": null, "comments": {"Count": 0}, "filter": "Hefe", "Created_time": "1444533784", "link": "https : \/\/www.instagram.com\/p\/8rpxxov48o\/"," likes ": {" Count ": 2}," Images ": {" Low_resolution ": {" url ":" https:\/\/ Scontent.cdninstagram.com\/hphotos-xpt1\/t51.2885-15\/s320x320\/e35\/11910259_421481191371212_1146964092_n.jpg "," width ":", "" height ":" thumbnail ": {" url ":" Https:\/\/scontent.cdninstagram.com\/hphotos-xpt1\/t51.2885-15 \/s150x150\/e35\/11910259_421481191371212_1146964092_n.jpg "," width ":" Max "," Height ":" Max "," Standard_resolution ": {" URL ":" Https:\/\/scontent.cdninstagram.com\/hphotos-xpt1\/t51.2885-15\/s640x640\/sh0.08\/e35\/11910259_ 421481191371212_1146964092_n.jpg "," width ": 640," height ": 640}}," Users_in_photo ": []," caption ": null," User_has_ Liked ": false," id ":" 1093151075025784616_2231334066 "," user ": {" username ":" Misery "," profile_picture ":" https:\/\/ scontent.cdninstagram.com\/hPhotos-xta1\/t51.2885-19\/10684024_538087799681202_2023427205_a.jpg "," id ":" 2231334066 "," full_name ":" Misery "}}] }

Reply content:


  
   

The $json's content is about this:

{"pagination": {}, "meta": {"code": $}, "data": [{"Attribution": null, "tags": [], "type": "Image", "location": null, " Comments ": {" Count ": 0}," filter ":" Normal "," Created_time ":" 1453516817 "," link ":" https:\/\/www.instagram.com\/p\/ ba3xjwmp4ye\/"," likes ": {" Count ": 0}," Images ": {" Low_resolution ": {" url ":" https:\/\/scontent.cdninstagram.com\/ Hphotos-xpf1\/t51.2885-15\/s320x320\/e35\/12547507_218933238449715_1618422633_n.jpg "," width ": +," height ": 320} , "thumbnail": {"url": "Https:\/\/scontent.cdninstagram.com\/hphotos-xpf1\/t51.2885-15\/s150x150\/e35\/12547507_ 218933238449715_1618422633_n.jpg "," width ":" Max "," Height ":" Max "," Standard_resolution ": {" url ":" https:\/\/ Scontent.cdninstagram.com\/hphotos-xpf1\/t51.2885-15\/s640x640\/sh0.08\/e35\/12547507_218933238449715_ 1618422633_n.jpg "," width ": 640," height ": 640}}," Users_in_photo ": []," caption ": null," user_has_liked ": false," id ":" 1168506212405185694_2231334066 "," user ": {" username ":" Misery "," profile_picture ":" https:\/\/ scontent.cdninstagram.com\/hphotos-xta1\/t51.2885-19\/10684024_538087799681202_2023427205_a.jpg "," id ":" 2231334066 "," full_name ":" Misery "}},{" attribution ": null," tags ": []," Type ":" "image", "location": null, "comments": {"Count": 0}, "filter": "Hefe", "Created_time": "1444533784", "link": "https : \/\/www.instagram.com\/p\/8rpxxov48o\/"," likes ": {" Count ": 2}," Images ": {" Low_resolution ": {" url ":" https:\/\/ Scontent.cdninstagram.com\/hphotos-xpt1\/t51.2885-15\/s320x320\/e35\/11910259_421481191371212_1146964092_n.jpg "," width ":", "" height ":" thumbnail ": {" url ":" Https:\/\/scontent.cdninstagram.com\/hphotos-xpt1\/t51.2885-15 \/s150x150\/e35\/11910259_421481191371212_1146964092_n.jpg "," width ":" Max "," Height ":" Max "," Standard_resolution ": {" URL ":" Https:\/\/scontent.cdninstagram.com\/hphotos-xpt1\/t51.2885-15\/s640x640\/sh0.08\/e35\/11910259_ 421481191371212_1146964092_n.jpg "," width ": 640," height ": 640}}," Users_in_photo ": []," caption ": null," User_has_ Liked ": false," id ":" 1093151075025784616_2231334066 "," user ": {" username ":" Misery "," profile_picture ":" https:\/\/ scontent.cdninstagram.com\/hPhotos-xta1\/t51.2885-19\/10684024_538087799681202_2023427205_a.jpg "," id ":" 2231334066 "," full_name ":" Misery "}}] }

Escaped,对自己问题的补充修改问题详情即可,不要发表在回答区域


  
   data;foreach($data as $row){    echo $row->images->standard_resolution->url."
";}

You only use Json_decode to decode, but the output is not json_encode ah. The output should be just a bunch of strings, right? \ is used to transfer characters. /In fact, after the output is/

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.