Socket
Book a DemoInstallSign in
Socket

vue-jsonpath-picker

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-jsonpath-picker

Vue JSON Path picker

latest
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

npm version

Vue JSON Picker

Vue JSON Picker is an adaptation of the jsonpath-picker-vanilly lib. This plugin provide you the jsonpath-picker component which allow you to render JSON Object into HTML and let your user pick JSONPath from this view.

An online tool is available to test used lib.

Features

  • Syntax highlighting
  • Collapsible and expandable child nodes
  • Clickable links
  • Easily readable and minimal DOM structure
  • Path picking

Plugin Installation

Load the npm package

npm i --save vue-jsonpath-picker

And register in vue the plugins

import JSONPathPicker from 'vue-jsonpath-picker';
import Vue from 'vue';

Vue.use(JSONPathPicker);

Usage

<jsonpath-picker :code="JSON Object" v-on:path="pathChangeHandler" />

Options

You can add options using basic lib options through option like following, see documentation for more detail;

<jsonpath-picker :code="JSON Object" v-on:path="pathChangeHandler" :opts="{ picker: false }" />

Contributing

Feel free to post feature requests, create pull requests or report bugs.

Credits

JSON path picker is based on jQuery json-path picker plugin. Big thanks to Piotr 'piotros' Baran for creating an awesome project!

Keywords

jsonpath

FAQs

Package last updated on 18 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.