https://github.com/avine/dojo-json-viewer
Just a small dojo to test some build tools...
https://github.com/avine/dojo-json-viewer
babel browserify jquery requirejs typescript
Last synced: about 2 months ago
JSON representation
Just a small dojo to test some build tools...
- Host: GitHub
- URL: https://github.com/avine/dojo-json-viewer
- Owner: avine
- License: mit
- Created: 2017-05-11T10:00:36.000Z (about 9 years ago)
- Default Branch: babel-amd
- Last Pushed: 2017-06-30T15:06:34.000Z (almost 9 years ago)
- Last Synced: 2025-05-14T18:54:12.058Z (about 1 year ago)
- Topics: babel, browserify, jquery, requirejs, typescript
- Language: JavaScript
- Homepage: https://avine.io/projects/dojo-json-viewer
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dojo-json-viewer
Using Babel and RequireJS.
We want to develop a little page that displays a JSON structure in a nice and friendly way.
The page shows an input field where the user can enter the URL of the JSON structure.
The page then displays an array with 3 columns.
The first column contains the key.
The second column shows a preview of the value depending on its type:
- String : shows the first 10 characters
- Array : shows the size of the array
- Object : shows the number of keys
The third column contains the type (string, array, object).
The array will only show the 10 first keys in the alphabetic order.
#### Execute the following commands to install and run the app in your local browser:
```bash
npm install
npm run build
npm start
```