The whole file is an array and there are objects and other arrays (e.g. cars) in the whole array of the file.

As you say, the outermost layer of your JSON blob is an array. Therefore, your parser will return a JSONArray. You can then get JSONObjects from the array ...

  JSONArray a = (JSONArray) parser.parse(new FileReader("c:\\exer4-courses.json"));

  for (Object o : a)
  {
    JSONObject person = (JSONObject) o;

    String name = (String) person.get("name");
    System.out.println(name);

    String city = (String) person.get("city");
    System.out.println(city);

    String job = (String) person.get("job");
    System.out.println(job);

    JSONArray cars = (JSONArray) person.get("cars");

    for (Object c : cars)
    {
      System.out.println(c+"");
    }
  }

For reference, see "Example 1" on the json-simple decoding example page.

Answer from Greg Kopff on Stack Overflow
๐ŸŒ
JSON Formatter
jsonformatter.org โ€บ json-viewer
JSON Viewer Online Best and Free
JSON Viewer Online helps to Edit, View, Analyse JSON data along with formatting JSON data. It's very simple and easy way to Edit JSON Data and Share with others. This is also a JSON file Viewer.
๐ŸŒ
JSON Editor Online
jsoneditoronline.org
JSON Editor Online: edit JSON, format JSON, query JSON
JSON Editor Online is the original and most copied JSON Editor on the web. Use it to view, edit, format, repair, compare, query, transform, validate, and share your JSON data.
Discussions

How to read json file into java with simple JSON library - Stack Overflow
I want to read this JSON file with java using json simple library. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Useful JSON viewer โ€“ JviewSON
this is so weird - i just stumbled across your site and just said to my partner "i don't know what i would have done without this website" i've never looked at the JSON sub before, and now here's your post! all that is to say THANK YOU! you have made my life SO MUCH EASIER! More on reddit.com
๐ŸŒ r/json
19
12
January 25, 2025
JSON Editor Online - view, edit and format JSON online
Nice... I have a couple of sites which I'd used to view JSON when debugging, but the ease of formatting and modifying will be useful if/when I need to plug modified values back into what I'm working on. And to those saying useless.... have you ever actually WORKED on a a web appication?????? More on reddit.com
๐ŸŒ r/programming
175
437
October 27, 2011
Looking for a Java decompiler
I've had a good experience with this one: http://jd.benow.ca/ EDIT: You decompile the .class file, which is a compiled .java file. A .jar file may contain .java files as well. More on reddit.com
๐ŸŒ r/java
49
28
June 7, 2017
People also ask

What browser should I use to view JSON files?
You can use any modern browser to view JSON files, for example, Google Chrome, Microsoft Edge, Firefox, Opera, or Safari.
๐ŸŒ
products.groupdocs.app
products.groupdocs.app โ€บ groupdocs products โ€บ viewer apps โ€บ view json
View JSON online | Free GroupDocs Apps
Is it safe to view JSON files using free GroupDocs Viewer?
Of course! The preview files will be available instantly after the file uploaded. We will delete the uploaded file after 24 hours.
๐ŸŒ
products.groupdocs.app
products.groupdocs.app โ€บ groupdocs products โ€บ viewer apps โ€บ view json
View JSON online | Free GroupDocs Apps
How can I open and view JSON file?
First, you need to upload a file: drag & drop your JSON file or click inside the white area to choose a file. Then you will be redirected to the viewer application.
๐ŸŒ
products.groupdocs.app
products.groupdocs.app โ€บ groupdocs products โ€บ viewer apps โ€บ view json
View JSON online | Free GroupDocs Apps
๐ŸŒ
Smallseotools
smallseotools.com โ€บ json-viewer
JSON Viewer - Read & Edit Your JSON Files Online
JSON File Viewer doesnโ€™t require any external resources, all you need is your code, and you will be able to see how it works. JSON view is used for verifying the data that the value you gave is written correctly or not.
๐ŸŒ
JSON Formatter
jsonformatter.org โ€บ json-viewer โ€บ b9ecc2
JSON Viewer - java
JSON Viewer Online helps to Edit, View, Analyse JSON data along with formatting JSON data. It's very simple and easy way to Edit JSON Data and Share with others. This is also a JSON file Viewer.
๐ŸŒ
Agentsfordata
agentsfordata.com โ€บ data viewer โ€บ json viewer
Free Online JSON Viewer & Editor - View JSON Files
Open, view, and edit JSON files with our interactive viewer and editor. View your data in raw JSON format or structured tabular layout.
๐ŸŒ
CodeBeautify
codebeautify.org โ€บ jsonviewer
Best JSON Viewer and JSON Beautifier Online
JSON Converter Online transforms into the following formats: Convert your JSON structure into XML format. Convert and export your JSON to CSV format. Hover over the image URL, and this JSON visualizer will display the image.
Find elsewhere
๐ŸŒ
JSON Viewer
jsonviewer.stack.hu
Online JSON Viewer and Formatter
Now you can import JSON files using ... "phoneNumbers": [ { "type": "home", "number": "212 555-1234" }, { "type": "fax", "number": "646 555-4567" } ] } JSON Viewer was created in 2008 as a side project and has become the largest project of it's kind....
๐ŸŒ
GroupDocs
products.groupdocs.app โ€บ groupdocs products โ€บ viewer apps โ€บ view json
View JSON online | Free GroupDocs Apps
April 18, 2022 - Our JSON viewer works online and does not require any software installation. ... You can use any modern browser to view JSON files, for example, Google Chrome, Microsoft Edge, Firefox, Opera, or Safari. What code is running on the server-side to render JSON files? Detailed code examples are available at GitHub in the form of executable projects. If you are only interested in rendering JSON files then check .NET & Java examples.
๐ŸŒ
Apache
pivot.apache.org โ€บ demos โ€บ json-viewer.html
JSON Viewer | Apache Pivot
JSON Viewer ยท Decorators ยท Table Row Editor ยท File Drag & Drop ยท Large Data Sets ยท RSS Feed ยท DOM Interaction ยท Fixed-Column Table ยท Multiple Selection ยท Charting ยท Allows users to visually browse a JSON structure using a TreeView component. Copyright (c) 1999-2023 The Apache Software ...
๐ŸŒ
JSON Formatter
jsonformatter.org โ€บ json-reader
Best JSON Reader Online
JSON Reader Online helps to read, visulise in Tree and in beautiful text mode. It's very simple and easy way to read JSON Data and Share with others. This is also a JSON File viewer, it supports JSON log file viewer.
๐ŸŒ
JSON Crack
jsoncrack.com
JSON Crack | Online JSON Viewer - Transform your data into interactive graphs
JSON Crack is an online JSON viewer tool designed to visualize and analyze various data formats, including JSON, YAML, CSV, XML and more.
๐ŸŒ
Jsonpathfinder
jsonpathfinder.com
JSON Path Finder
0: Enter your JSON in the editor. 1:Select an item to view its path.
๐ŸŒ
Java Guides
javaguides.net โ€บ p โ€บ online-json-viewer.html
Online JSON Viewer
August 22, 2023 - The Online JSON Viewer is a tool that allows users to visualize and format JSON data. Users can input raw JSON data, view it in a tree-like structure.
๐ŸŒ
GitHub
github.com โ€บ 0akhilesh9 โ€บ A-Fancy-JSON-Viewer
GitHub - 0akhilesh9/A-Fancy-JSON-Viewer: Just a fancy JSON viewer based on JAVA, HTML and Javascript.
Double click the "Jsonviewer.jar" file and select "<file_name>.json" file to view. ... Just a fancy JSON viewer based on JAVA, HTML and Javascript.
Author ย  0akhilesh9
๐ŸŒ
Online JSON Editor
classic.online-json.com โ€บ json-viewer
Online JSON Viewer
You don't need to go through any laborious processes to download your JSON file using our JSON file viewer; simply click the "Download" button and save the file to your device.
๐ŸŒ
Jsonpath
jsonpath.com
JSONPath Online Evaluator
We cannot provide a description for this page right now
๐ŸŒ
Jsongrid
jsongrid.com โ€บ json-viewer
Json Viewer Online - All-in-One Solution
Online JSON Viewer - Convert JSON Strings to a Friendly Readable Format, View JSON in table or Grid
๐ŸŒ
Jsonviewer
jsonviewer.ai
JSON Viewer Online
Free online JSON Viewer for easy viewing, validating, and beautifying JSON data. A simple JSON Viewer, JSON Validator and JSON Beautifier.
๐ŸŒ
Reddit
reddit.com โ€บ r/json โ€บ useful json viewer โ€“ jviewson
r/json on Reddit: Useful JSON viewer โ€“ JviewSON
January 25, 2025 -

Hey everyone!

I recently made a little tool called JviewSON, and I thought it might come in handy for anyone who works with JSON files regularly. Itโ€™s simple and designed for viewing and analyzing JSON files without any unnecessary extras.

A few key features:

  • Displays JSON data in a clean and easy-to-read structure.

  • Built-in search to help you find what you need fast.

  • Automatically updates if the JSON file changes in the background.

  • Itโ€™s view-only, so no risk of accidentally editing your data.

If youโ€™re curious, you can check it out on itch.io, where you can also run a browser-based version without downloading:
https://pocdev.itch.io/jviewson

Or if you prefer to dig into the code (made in Godot) hereโ€™s the GitHub repo:
https://github.com/andreas-volz/JviewSON

Would love to hear what you think or if you have any ideas for improvement!