Skip to content
/ mcJSON Public

A fork of cJSON with the goal of making it fit to create JSON containing cryptographic keys.

License

ISC, Unknown licenses found

Licenses found

ISC
LICENSE
Unknown
LICENSE.old
Notifications You must be signed in to change notification settings

FSMaxB/mcJSON

Repository files navigation

mcJSON

Travis Build Status Coverity Scan Build

mcJSON is a Fork of cJSON with the goal of making it fit for creating JSON containing cryptographic keys and other confidential data without leaking this confidential data.

THE API ISN'T CONSIDERED STABLE, SO KEEP IN MIND IT MAY CHANGE AT ANY MOMENT, ALSO, MCJSON_UTILS HASN'T BEEN PORTED YET.

Features/Differences in comparison with cJSON:

  • New coding style (cJSONs source code looks quite ugly!)
  • No null terminated c strings, mcJSON uses molch-buffer instead
  • Allocated memory is zeroed after use (currently only applies to strings, not numbers, bools etc.)
  • Depends on libsodium (may change in the future)
  • Doesn't contain stupid mistakes that even a compiler with proper flags can catch. (It still contains mistakes though, every piece of software does)
  • Buffered parsing (allocate one big continuous chunk of memory and parse the entire JSON tree into it)
  • Arrays and objects know their own length (getting the size has O(1) complexity )

mcJSON is licensed under the ISC license.

About

A fork of cJSON with the goal of making it fit to create JSON containing cryptographic keys.

Resources

License

ISC, Unknown licenses found

Licenses found

ISC
LICENSE
Unknown
LICENSE.old

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •