Coder Social home page Coder Social logo

makuke1234 / jsonlite2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 530 KB

A better light-weight JSON library for C99 & C++11 and upwards.

License: MIT License

C++ 38.34% C 59.09% Makefile 2.57%
cpp mingw json json-parser json-parsing json-api gcc c-binding c99 c

jsonlite2's Introduction

jsonlite2

Good things in life are free...

Release version Total downloads C version C++ version wakatime

A light-weight C/C++ JSON library, relying on KISS (Keep It Stupid Simple) principle (similar to my other json library jsonlite). This time I decided to make the C version first, translating it to C++ afterwards seemed easier to me.

Overview

Yes, this library is designed to aim for fast compilation times, simplicity, ease of use and full compliance with JSON standard.

The C++ version

The C++ version of this library is a single-include header file, C++11 compliant, yet again relying on KISS principle. This time I decided not to use custom exceptions, also, the linter part of it is exception-free.

Obtaining

Both 32-bit and 64-bit Windows binaries of this library can be obtained here. The library has been compiled with MinGW GCC and should also be compatible with Microsoft's Visual C++ compiler and the others, since MinGW uses the same format for C libraries.

If you want you can compile the library yourself, just use the makefile provided in the c subdirectory.

Changelog

  • 2.0
    • Make C++ version of the library expection-less
  • 1.9
    • Improve usability of C++ version
  • 1.8.2
    • Fix linter bug both in C & C++ version
  • 1.8.1
    • Fix strdup_s & wcsdup_s bug SEG-faulting on NULL string
  • 1.8
    • Fix bug with object value fetching in C version
  • 1.7
    • Fix bug with variable shadowing in C version
  • 1.6
    • Fix C binaries
  • 1.5
    • Make value dumping more 'beautiful', fix C library linking issues
    • Make minor optimisations
  • 1.4
    • Fix bug in syntax checker, checker gave false positive on missing quotation mark " when the file contains only one string as a value
    • Release first C++ version
  • 1.3
    • Skip NULL values when dumping object
  • 1.2
    • Make error code UTF-8 instead of UTF-16
  • 1.1
    • Minor optimisation in value type, use uint8_t instead of enum type itself
  • 1.0
    • Initial release

About testing

Although light testing has been done with the library, feel free to report any bugs that you may find under Issues. This project is by no means perfect.

License

This project is under the MIT license.

jsonlite2's People

Contributors

makuke1234 avatar

Watchers

 avatar

jsonlite2's Issues

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.