Fred J. Fred J. - 1 year ago 281
Javascript Question

json viewer for meteor

A meteor app has a json data which need to be displayed for users to select from. The user need to drill down 3 levels deep in order to select the item of their choice and may make multiple selections.

There is an online json viewer which allows one to drill down to select as well as search for a given string and the whole json data will be filtered revealing the json entry which contains the searched-for string as it is being type.

What is the general approach to have this kind of functionality in a meteor mobile app? Thanks

Answer Source

You can find a package on npm or atmosphere (Meteor specific packages) that fits your needs.

The community is moving towards npm in general but for some very integrated solutions (with the Meteor ecosystem) atmosphere is still the place to look.

Like this example for instance is really just a wrapper for the npm json-editor package.

Check out for more explanation.


import { JSONEditor } from 'meteor/appworkshop:json';

In this case will import required code. (Note 'meteor/ ) due to atmosphere packages being stored in meteor directory.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download