Skip to content

ruanyl/json-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-value

build status NPM version

retrieve value from json with a given keys string "foo.bar.val"

Installation

This module is installed via npm:

$ npm install json-value

Example Usage

var jsonValue = require('json-value');

var json = {
  foo: '123',
  bar: {
    name: 'ruan',
    age: 12
  }
};

jsonValue(json, 'bar.name'); //shoud be 'ruan'

About

retrieve value from json with a given keys string "foo.bar.val"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published