Git Product home page Git Product logo

jsonlite's Introduction

jsonlite

Build Status

The announcement blog post has a one minute introduction to the package.

Premature optimization is the root of all evil. - Donald Knuth

This package implements toJSON and fromJSON functions similar to those in packages as RJSONIO and rjson, but options and output are quite different. The initial emphasis in jsonlite has been on correctness: rather than rushing towards performance, we want to explicity specify intended behavior covering all important structures. The complexity of this problem is easily understimated, which can result in unexpected behavior, ambiguous edge cases and differences between implementations. Some conventions for a consistent and practical mapping are proposed in the package vignette. Feel free to join the discussion.

For the parts where there is consensus on the spec, we can shift gears towards optimization. You can submit patches or pull requests with performance tweaks, as long as they don't alter the behavior of the functions. Make sure to run at leasts the unit tests:

library(testthat)
test_packages("jsonlite")

Alternatively, you could reimplement the entire thing in something like C++ and use jsonlite as a reference implementation.

jsonlite's People

Contributors

jeroen avatar duncantl avatar ameliamn avatar wch avatar gaborcsardi avatar kbroman avatar maarten-vermeyen avatar isomorphisms avatar

Watchers

Gregory Jefferis avatar

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.