Skip to content

Releases: HeCoding180/cJSON_Lib

Preview v0.1.0

31 Aug 01:31
Compare
Choose a tag to compare
Preview v0.1.0 Pre-release
Pre-release

Release Notes

This preview contains all basic functions for the creation of a cJSON data structure. There is also some example code in the main.c file which can parse the bitcoin value from the Coinbase Bitcoin API (https://api.coinbase.com/v2/prices/spot?currency=USD).

Features

The following features are present in this version:

  • All possible JSON object types are available.
    • Dictionary
    • List
    • String
    • Integer
    • Float
    • Boolean
    • Null
  • String Parser (parse a string containing a JSON data structure) into an interactive cJSON data structure.
  • Safe type casting functions for generic objects. (typecasting is only done if the type matches).
  • Safe append functions for appending generic objects to lists or dictionaries.
  • Type getter function.
  • Structural depth analysis function.
  • Deletion function to free memory from unused data structures (generic objects).
  • Generic Stack. Stack of generic objects to allow for relative maneuverability inside a cJSON data structure.
  • Double buffered StringBuilder used in parser to reduce unnecessary memory consumption and reduce cpu load.
  • User defineable constants to allow for more memory useage if needed.
    • User defineable max sizes for structural depth.
    • User defineable StringBuilder pre-buffer size.

Known Issues

The following bugs are present in this release:

  • Code is not that safe yet in regard of vulnerability caused by the user.