All Projects → janl → Node Jsonpointer

janl / Node Jsonpointer

Licence: mit
JSON Pointer (RFC6901) implementation for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Node Jsonpointer

Node Jq
Node.js wrapper for jq
Stars: ✭ 147 (-5.16%)
Mutual labels:  json
Json Splora
GUI for editing, visualizing, and manipulating JSON data
Stars: ✭ 1,818 (+1072.9%)
Mutual labels:  json
Aeromock
Lightweight mock web application server
Stars: ✭ 152 (-1.94%)
Mutual labels:  json
Jhop
🏎Create fake REST API in one sec.
Stars: ✭ 148 (-4.52%)
Mutual labels:  json
Utilsdmo
jsonManager json解析 采用 fastjson TimeUtils 时间类 除了时间格式化,提供用于视频的时长,和语音的时长的时间格式化 YUtils 类例如 获取屏幕宽
Stars: ✭ 149 (-3.87%)
Mutual labels:  json
I18next Gettext Converter
converts gettext .mo or .po to 18next json format and vice versa
Stars: ✭ 150 (-3.23%)
Mutual labels:  json
Ladybug
A powerful model framework for Swift 4
Stars: ✭ 147 (-5.16%)
Mutual labels:  json
Rbbjson
Flexible JSON traversal for rapid prototyping.
Stars: ✭ 155 (+0%)
Mutual labels:  json
Configurate
A simple configuration library for Java applications providing a node structure, a variety of formats, and tools for transformation
Stars: ✭ 148 (-4.52%)
Mutual labels:  json
World Cup.json
Free open public domain football data for the world cups in JSON incl. Russia 2018 and more - No API key required ;-)
Stars: ✭ 152 (-1.94%)
Mutual labels:  json
Json 2 Kotlin
Convert JSON to Kotlin Data Classes
Stars: ✭ 148 (-4.52%)
Mutual labels:  json
Laravel Translatable String Exporter
Translatable String Exporter for Laravel
Stars: ✭ 149 (-3.87%)
Mutual labels:  json
Gelatin
Transform text files to XML, JSON, or YAML
Stars: ✭ 150 (-3.23%)
Mutual labels:  json
Omniparser
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc.
Stars: ✭ 148 (-4.52%)
Mutual labels:  json
Awscloudformation Samples
Sample AWS CloudFormation templates
Stars: ✭ 153 (-1.29%)
Mutual labels:  json
Carrots Admin Ajax
基于AngularJS1.3.18 + BootStrap 3.3.7 + +jQuery3.2.1 的后台管理系统方案
Stars: ✭ 147 (-5.16%)
Mutual labels:  json
Jose2go
Golang (GO) implementation of Javascript Object Signing and Encryption specification
Stars: ✭ 150 (-3.23%)
Mutual labels:  json
Dhallj
Dhall for Java
Stars: ✭ 154 (-0.65%)
Mutual labels:  json
Poison
An incredibly fast, pure Elixir JSON library
Stars: ✭ 1,898 (+1124.52%)
Mutual labels:  json
Logstash Logback Encoder
Logback JSON encoder and appenders
Stars: ✭ 1,987 (+1181.94%)
Mutual labels:  json

JSON Pointer for Node.js

This is an implementation of JSON Pointer.

CLI

Looking to filter JSON from the command line? Check out jsonpointer-cli.

Usage

var jsonpointer = require('jsonpointer');
var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]};

jsonpointer.get(obj, '/foo');     // returns 1
jsonpointer.get(obj, '/bar/baz'); // returns 2
jsonpointer.get(obj, '/qux/0');   // returns 3
jsonpointer.get(obj, '/qux/1');   // returns 4
jsonpointer.get(obj, '/qux/2');   // returns 5
jsonpointer.get(obj, '/quo');     // returns undefined

jsonpointer.set(obj, '/foo', 6);  // sets obj.foo = 6;
jsonpointer.set(obj, '/qux/-', 6) // sets obj.qux = [3, 4, 5, 6]

var pointer = jsonpointer.compile('/foo')
pointer.get(obj)    // returns 1
pointer.set(obj, 1) // sets obj.foo = 1

Testing

$ npm test
All tests pass.
$

Build Status

Author

(c) 2011-2020 Jan Lehnardt [email protected] & Marc Bachmann https://github.com/marcbachmann

Thanks to all contributors.

License

MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].