Giter Site home page Giter Site logo

zordius / json-path-processor Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 10.0 1.09 MB

JsonPathProcessor (JPP) - A common data processor target to process data without running try catch hell, and get/set properties of nested objects.

Home Page: https://www.npmjs.org/package/json-path-processor

License: Other

JavaScript 89.05% HTML 5.88% Shell 5.07%

json-path-processor's People

Contributors

c301 avatar zordius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

json-path-processor's Issues

The Readme

Would be excellent if you could add some info on what the products-data you are working with in the README examples looks like. Cheers.

set new object

Hi,

In your README, you show a set example like this.

// will get {a: {b: 'OK', c:[1, 4]}}
console.log(jpp({a: {b: 'OK', c: [1, 4]}}).set('a.b.c.d', 'OK?').value());

So it means that this package didn't support add a new key value?

like

jpp({a: {b: 'OK'}}).set('a.c', 'OK?')
=> {a: {b: 'OK', c: 'OK'}}

$.me.1 vs $.me[1]

You seem to follow a different approach to selecting items in an array than this http://goessner.net/articles/JsonPath/

$.me.1 vs $.me[1]

Any particular reason?

I'm considering forking this project to support this approach. Is this something you would merge back in?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.