1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to rank json data ?

Discussion in 'White Hat SEO' started by lonelytty, Sep 21, 2014.

  1. lonelytty

    lonelytty Newbie

    Joined:
    Sep 16, 2011
    Messages:
    25
    Likes Received:
    11
    Occupation:
    IM
    Location:
    Brazil
    Hey guys, i'm starting a website and i have all my restfull api returning only json data separated from the html (server) code
    (user fetch a page then the returning html has javascript making a javascript XMLHttpRequest to the api) ex:
    Code:
    GET /index -> <h1><script>var jsondata= requestjsondata('/api/products/uuid');document.write(jsondata.somedata)</script></h1>
    i'm trying to follow whitehat basic practices so i tested my pages on lynx browser and there is almost no visually content (mostly javascript and json)
    i can make my pages return plain HTML on requests but my api is so clean returning json data

    How do you do seo for json/javascript code, is it better generating plain html or is there a workaround ?
     
    Last edited: Sep 21, 2014
  2. qrazy

    qrazy Senior Member

    Joined:
    Mar 19, 2012
    Messages:
    1,111
    Likes Received:
    1,712
    Location:
    Banana Republic
    • Thanks Thanks x 2
  3. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    I would fetch my content using server side code and simply display them as html, in my page. qrazy is correct too. It is possible to seo an ajax based site as I have read but I have never tried it.
     
    • Thanks Thanks x 1