tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.rst (1022B)


      1 ===========
      2 JSON viewer
      3 ===========
      4 
      5 Firefox includes a JSON viewer. If you open a JSON file in the browser, or view a remote URL with the Content-Type set to application/json, it is parsed and given syntax highlighting. Arrays and objects are shown collapsed, and you can expand them using the "+" icons.
      6 
      7 The JSON viewer provides a search box that you can use to filter the JSON.
      8 
      9 You can also view the raw JSON and pretty-print it.
     10 
     11 Finally, if the document was the result of a network request, the viewer displays the request and response headers.
     12 
     13 Console API
     14 ===========
     15 
     16 The JSON viewer exposes data through a console API, making it easy to access the parsed JSON and other information from the Console:
     17 
     18 - **$json.data** - The parsed JSON object
     19 - **$json.text** - The original JSON text
     20 - **$json.headers** - HTTP request and response headers
     21 
     22 To access these from the console, :ref:`open the Web Console <keyboard-shortcuts-opening-and-closing-tools>`, and type ``$json.data`` to explore the parsed JSON object.