Skip to content
hktonylee edited this page Feb 12, 2014 · 4 revisions

Welcome to json-reader ;-) You may want to load old JSON config. It is an easy if there is only one old version. What if there are 2? 4? or even 10 old versions? Do you want to write tens of the ifs to check the null? I don't either. That is why I make this library.

json-reader is a JSON reader. You can write migration plan and read old json easily.

Design Principles

There are 3 design principles of this library:

  1. Easy to Use

    Everyone should make the migration plan as easy as possible. So that it is clear and easy to write migration plans for all common tasks.

  2. Easy to Integrate with Existing JSON

    You may want to add some new functions to the old systems. The initial design may not accomplish the migration issue. Therefore ability to integrate is important for this library.

  3. Lightweight

    This library should run as fast as hand-written ifs. If the performance is similar but with more expressive way, why not use json-reader?

Usage

Please refer to README.md.

Clone this wiki locally