RepositoryCFRFrance
MaJerle

MaJerle/lwjson

Lightweight JSON parser for embedded systems

281stars
67forks
5issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: systems

#1 Repository of the week

1
TINIX TRENDING·Topic: javascript-object-notation

#1 Repository of the week

3
TINIX TRENDING·Topic: reader

#3 Repository of the week

Lightweight JSON text parser

Library provides generic JSON text parser, that is optimized for embedded systems. Supports streaming parsing or classic parsing with full JSON data available in one big linear memory. First one being optimized for ultra small microcontrollers, second one being ready for PC applications - or simply when several kB of RAM memory is available at any given point of time

Read first: Documentation

Features

  • Written in C (C11), compatible with size_t for size data types
  • RFC 4627 and RFC 8259 compliant
  • Based on static token allocation with optional application dynamic pre-allocation
  • No recursion during parse operation
  • Re-entrant functions
  • Zero-copy, no malloc or free functions used
  • Supports streaming parsing as secondary option
  • Optional support for inline comments with /* comment... */ syntax between any blank region of input string
  • JSON serializer separate module
  • Advanced find algorithm for tokens
  • Test coverage is available
  • User friendly MIT license

Contribute

Fresh contributions are always welcome. Simple instructions to proceed:

  1. Fork Github repository
  2. Follow C style & coding rules already used in the project
  3. Create a pull request to develop branch with new features or bug fixes

Alternatively you may:

  1. Report a bug
  2. Ask for a feature request

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026
RepositoryTypeScript
vuejs/vue

This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core

212.6k
Oct 10, 2024
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.8k
Jul 26, 2026
RepositoryJavaScript
airbnb/javascript

JavaScript Style Guide

148.0k
Apr 16, 2026
RepositoryC
micropython/micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems

22.2k
Nov 27, 2026