Skip to content

annarankin/json-navigator

Repository files navigation

JSON Navigator

This program is intended as a tool to help students learn to navigate nested data structures.

Features

  1. User can input valid JSON and see a prettily formatted version in their browser.
  2. User can hover over keys and values and see them highlighted in different colors.
  3. User can hover over a value and its access path, or a combination of index numbers (e.g. [0]) and keys (e.g. .weather), will be displayed and copied to their clipboard.
  4. User can view value's access path in either Ruby or JavaScript syntax.

To Do

Additional Features

  • A tooltip is displayed when a user hovers over a bracket with the line number of the other bracket it's paired with.
  • Allow users to collapse data structures for easier viewing Done
  • Allow users to input valid JS code to be parsed
  • Allow users to input valid Ruby code to be parsed

Refactor

  • Add error handling for incorrect input/invalid JSON. Done
  • Refactor so that individual lines of code are nested inside of divs for easier navigation. Done
  • Bug fix: Commas display after the last element in nested objects/arrays.

About

front-end tool to help students navigate deeply-nested json structures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published