Giter VIP home page Giter VIP logo

mljson's Introduction

MLJSON - JSON parsing, serialization, construction and more

The MLJSON project is a set of libraries for working with JSON content.

Note: This project used to contain a REST frontend to expose MarkLogic functionality. That work has now been split off into a new project, Corona.

API Documentation

Check the wiki for documentation on the various library functions.

mljson's People

Contributors

ryangrimm avatar eedeebee avatar dscape avatar

Stargazers

Innovimax avatar Matteo Guarnerio avatar Ellis Pritchard avatar Efraim Feinstein avatar Tian Chen avatar  avatar

Watchers

Michael Blakeley avatar Justin Makeig avatar  avatar Innovimax avatar  avatar  avatar Jason Hunter avatar Pete Aven avatar  avatar David Cassel avatar James Cloos avatar  avatar Ganesh avatar  avatar  avatar

Forkers

dscape stephanma

mljson's Issues

XSLT support for JSON documents

It could be useful to support easy authoring of XSLT transformations on JSON documents. The main stumbling block today is knowing the internal structure of the XML that represents the JSON.

Transforming from one JSON form to another doesn't feel like an exceptionally common use case. While a user could do this, making this aspect easy seems lower on my list. Transforming to a totally different format (HTML, XML) feels more valuable.

Open to opinions.

Exclude from query results

In simply kv queries it is sometimes necessary to ass exclude clases:

e.g.

  find id:123
  but exclude id:345

005F should not be escaped

on function escapeNCName function underbar "_" should not be escaped as it is a valid JSON name character.

Support multi statement update transactions

The current update functionality serves few purposes that are not in insert.

It was agreed it would be nicer to support something like:

  function updateUser(ghUser) {
    console.log("Trying to update github user " + ghUser.login);
    db.json.update_first(
       { github_login: ghUser.login })
         .increment('version', 1)
         .replace('github_login', ghUser.login)
         .replace('github', ghUser)
         .delete('linkedin.deletemeplease')
         .rename('meeutp','meetup')
         .push('anarray', 1)
         .addCollection('github') // also replaceCollection
         .setQuality(9)
         .replacePermissions(['a','b','c']) // also addPermissions
         .save(
           function saveCb(e) {
             if(e) {
               console.log("Couldn't update " + ghUser.login);
               return;
             }
             console.log(ghUser.login + " updated");
             return;
         });
  };

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.