View Single Post
  #204  
Old 12-14-2015, 03:04 AM
jonaaa jonaaa is offline
Member
 
Join Date: Dec 2015
Posts: 58
jonaaa is on a distinguished road
Default

Re: Record/Capture/Download/Rip/Save Music from Deezer


Quote:
Originally Posted by cw2k View Post
Oh dear this 'worm-code' is a maze for the eyes.

Be smart and make it more beautiful with:

http://jsbeautifier.org

That's how it'll look parse & formated:
Code:
{
    "id": 11898198,
    "title": "A Head Full Of Dreams",
    "upc": "825646487059",
    "link": "http:\/\/www.deezer.com\/album\/11898198",
    "share": "http:\/\/www.deezer.com\/album\/11898198?utm_source=deezer&utm_content=album-11898198&utm_term=0_1450066636&utm_medium=web",
    "cover": "http:\/\/api.deezer.com\/album\/11898198\/image",
    "cover_small": "http:\/\/e-cdn-images.deezer.com\/images\/cover\/b8ead91b2156f1e69ebd26020221a24b\/56x56-000000-80-0-0.jpg",
    "cover_medium": "http:\/\/e-cdn-images.deezer.com\/images\/cover\/b8ead91b2156f1e69ebd26020221a24b\/250x250-000000-80-0-0.jpg",
    "cover_big": "http:\/\/e-cdn-images.deezer.com\/images\/cover\/b8ead91b2156f1e69ebd26020221a24b\/500x500-000000-80-0-0.jpg",
    "genre_id": 85,
    "genres": {
        "data": [{
            "id": 85,
            "name": "Alternative",
            "picture": "http:\/\/api.deezer.com\/genre\/85\/image",
            "type": "genre"
        }]
....
^-and on the site it'll also gonna have syntax highlighting.
Like this JSON is gonna be more fun


... or talking about chrome. Another simple approach is this.
1. Copy the JSON code
2. Open the console (shift+ctrl+i) and type a=
3. Paste the code so it may look like this
Code:
a={
    "id": 11898198,
    "title": "A Head Fu...
...rack"
        }]
    }
}
4. Now you can browser the tree.

However first maybe the best + paste the code in a nice code editor like Notepad++ (Eclipse, Netbeans or whatever you like) select 'JSON' as language so you get highlighting & U can now also open/close the tree as well.
Wow, thanks... really nice but Notepad++ can do this too right?
Reply With Quote