An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Lazarus JSON Viewer

[![Build Status](https://github.com/gcarreno/laz-JSON-Viewer/workflows/build-test/badge.svg?branch=master)](https://github.com/gcarreno/laz-JSON-Viewer/actions)
[![Supports Windows](https://img.shields.io/badge/support-Windows-blue?logo=Windows)](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[![Supprts Linux](https://img.shields.io/badge/support-Linux-yellow?logo=Linux)](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[![Supports macOS](https://img.shields.io/badge/support-macOS-black?logo=macOS)](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[![License](https://img.shields.io/github/license/gcarreno/laz-JSON-Viewer)](https://github.com/gcarreno/laz-JSON-Viewer/blob/master/LICENSE)
[![Latest Release](https://img.shields.io/github/v/release/gcarreno/laz-JSON-Viewer?label=latest%20release)](https://github.com/gcarreno/laz-JSON-Viewer/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/gcarreno/laz-JSON-Viewer/total)](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
![Picture1](images/lazjsonviewer-linux-tree.png)
- JSON view
![Picture2](images/lazjsonviewer-linux-json.png)