https://github.com/gcarreno/laz-json-viewer
Lazarus JSON Viewer
https://github.com/gcarreno/laz-json-viewer
default-viewer fpc free-pascal freepascal json lazarus lazarus-ide lazarus-json-viewer pascal viewer
Last synced: 10 months ago
JSON representation
Lazarus JSON Viewer
- Host: GitHub
- URL: https://github.com/gcarreno/laz-json-viewer
- Owner: gcarreno
- License: mit
- Created: 2021-01-08T02:34:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-21T16:12:11.000Z (about 3 years ago)
- Last Synced: 2023-10-20T19:57:52.718Z (over 2 years ago)
- Topics: default-viewer, fpc, free-pascal, freepascal, json, lazarus, lazarus-ide, lazarus-json-viewer, pascal, viewer
- Language: Pascal
- Homepage:
- Size: 821 KB
- Stars: 24
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: history.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazarus JSON Viewer
[](https://github.com/gcarreno/laz-JSON-Viewer/actions)
[](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[](https://github.com/gcarreno/laz-JSON-Viewer/blob/master/LICENSE)
[](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[](https://github.com/gcarreno/laz-JSON-Viewer/releases)
Simple application to view a JSON file.
**Table of contents**
- [Features](#features)
- [Keys](#keys)
- [Translations](#translations)
- [Setup as default viewer](#setup-as-default-viewer)
- [Linux (Unbuntu)](#linux-ubuntu)
- [Windows](#windows)
- [Screenshots](#screenshots)
## Features
1. List of files to view
2. View JSON in tree format, Tree Tab
3. View JSON in text format, JSON Tab
4. Drag and Drop files unto the application
5. Multiple interpretations of the value
- Numbers formated and unformated
- Numbers displayed in Binary and Hexadecimal
- Numbers displayed in Bytes (B, KB, MB, GB, TB)
- Integer numbers displayed as date (UnixTime)
## Keys
- The `F12` key toggles between Tree and JSON view.
- The `Escape` key exits the application.
- On Linux the `Ctrl+Q` key combination exits the application.
- On Windows the `Atl+X` key combination exits the application.
## Translations
At the moment the available translations are for:
- Portuguese(Portugal)
If you like this application and are willing to translate it, I would be immensely grateful towards that effort!!
## Setup as default viewer
### Linux (Ubuntu)
The quick and dirty way I did it on my system was:
1. Create a file under `$HOME/.local/share/applications` named `jsonviewer.desktop` with the appropriate contents pointing to where you have uncompressed your binary.
2. Create and entry on `$HOME/.local/share/applications/defaults.list` that looks like:
```ini
[Default Applications]
application/json=jsonviewer.desktop
```
### Windows
At the moment I don't have an answer on how to do it manually. Need to consult some Windows gurus.
Nonetheless, the Windows Setup binary provided will ask you if you want to make it the default viewer for `JSON` files.
## Screenshots
- Tree view

- JSON view
