Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
100 lines (96 sloc) 7.77 KB
ap questions["results"][0], { :html => true}

questions

  • beginning of questions json (as a ruby data structure)
{
  "count" => 360927,
  "next" => 
    "https://support.mozilla.org/api/2/question/?format=json&locale=en-US&ordering=%2Bcreated&page=2&product=firefox",
  "previous" => nil,
}

results i.e. questions["results"]

{
                "answers" => [],
                "content" => "<p>Restart computer to reestablish icon? If so, why did it vanish in the first place? Security or safety of using computers is called into\nquestion every time these unexplained occurrences take place. Thank you for your reply.\n</p>",
                "created" => "2018-09-09T03:39:25Z",
                "creator" => {
            "username" => "dhmaritime",
        "display_name" => nil,
              "avatar" => "https://secure.gravatar.com/avatar/f9429ac71701dfd74029fb9f60987ca5?s=48&d=https%3A//static-media-prod-cdn.sumo.mozilla.net/static/sumo/img/avatar.png"
    },
                     "id" => 1232941,
               "involved" => [
        [0] {
                "username" => "dhmaritime",
            "display_name" => nil,
                  "avatar" => "https://secure.gravatar.com/avatar/f9429ac71701dfd74029fb9f60987ca5?s=48&d=https%3A//static-media-prod-cdn.sumo.mozilla.net/static/sumo/img/avatar.png"
        }
    ],
            "is_archived" => false,
              "is_locked" => false,
              "is_solved" => false,
                "is_spam" => false,
               "is_taken" => false,
            "last_answer" => nil,
                 "locale" => "en-US",
               "metadata" => [
        [0] {
             "name" => "category",
            "value" => "other"
        },
        [1] {
             "name" => "ff_version",
            "value" => "62.0"
        },
        [2] {
             "name" => "os",
            "value" => "Windows 10"
        },
        [3] {
             "name" => "plugins",
            "value" => "* Shockwave Flash 30.0 r0"
        },
        [4] {
             "name" => "product",
            "value" => "desktop"
        },
        [5] {
             "name" => "useragent",
            "value" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0"
        }
    ],
                   "tags" => [
        [0] {
            "name" => "Firefox 62.0",
            "slug" => "firefox-620"
        },
        [1] {
            "name" => "other",
            "slug" => "other"
        },
        [2] {
            "name" => "desktop",
            "slug" => "desktop"
        },
        [3] {
            "name" => "Windows 10",
            "slug" => "windows-10"
        }
    ],
            "num_answers" => 0,
    "num_votes_past_week" => 1,
              "num_votes" => 1,
                "product" => "firefox",
               "solution" => nil,
              "solved_by" => nil,
            "taken_until" => nil,
               "taken_by" => nil,
                  "title" => "The firefox icon vanished for no reason. Had to open Firefox from computer list of programs. How to get it back without reloading entire program?",
                  "topic" => "other",
             "updated_by" => nil,
                "updated" => "2018-09-09T03:39:25Z"
}