---
name: "data-viewer"
section: "1p"
platform: "linux"
package: "libtk-objscanner-perl"
version: "2.018-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/data-viewer"
---

# data-viewer(1p)

Open a data viewer widget for you JSON or YAML data

## NAME

data\_viewer - Open a data viewer widget for you JSON or YAML data

## SYNOPSIS

```
  # view json file
  data_viewer file.json
  # viewn yaml file
  data_viewer file.yml
  # pipe json data
  data_viewer -json < file.json
  # pipe yaml data
  data_viewer -yaml < file.yml
```

## DESCRIPTION

This command opens a Tk::ObjScanner widget for the data stored in YAML or JSON file.

This command can be applied on a file passed as argument or data can be piped to `"data_viewer"`. Yaml file suffix can be `"yaml"` or `"yml"`.

## OPTIONS

### -json

Parse the data as JSON.

### -yaml

Parse the data as YAML.

## BUGS

- •

  YAML anchor and aliases are ignored. Data is seen as duplicated in the widget.

- •

  JSON object are showed as `"HASH"`, which is Perl terminology.

## SEE ALSO

Tk::ObjScanner

## POD ERRORS

Hey! **The above document had some coding errors, which are explained below:**

- Around line 120:

  \=cut found outside a pod block.  Skipping to next block.
