Git Product home page Git Product logo

toy-json-lib's Introduction

toy-json-lib

toy-level json parser & generator

Get Started: What's JSON?

  • JavaScript Object Notation
    • A data-interchange format, originated from JS
  • Features: lightweight, which is easy for
    • humans to read & write
    • machines to parse & generate
  • Applications, e.g.,
    • Web API response format
    • Document-oriented database

Project Overview

overview

  • Components: standardized parser and generator
    • ECMA-404 The JSON Data Interchange Standard
    • e.g., recursive descent parser
  • Language: C89
  • LOC: approx. 4000

Technical Details

  • Roadmap
    • Parser: number --> string -> array --> object
    • Parser --> Generator
  • Limited support
    • encoding, number type, correctness & efficiency, etc.
  • As a so-called “high-level” programming experiment…
    • Test-driven Development
    • API design
    • cross-platform
    • unified code style
    • dev tools: CMake, Valgrind, Doxygen, etc.

References

[1] Introducing JSON https://json.org

[2] JSON from Wikipedia https://en.wikipedia.org/wiki/JSON

[3] The Rise and Rise of JSON by Two-Bit History https://twobithistory.org/2017/09/21/the-rise-and-rise-of-json.html

[4] 从零开始的JSON库教程 by Milo Yip https://zhuanlan.zhihu.com/p/22457315

toy-json-lib's People

Contributors

samar1tan avatar

Stargazers

 avatar

Watchers

 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.