Skip to content
L

Lwjson

Lightweight JSON parser for embedded systems

by MaJerleFree

#4350in Developer Tools
0In stores

Description

LwJSON is a generic JSON parser library written in C for embedded systems. It supports two parsing styles. Streaming parsing is aimed at ver…

Highlights

  • Streaming and classic JSON parsing modes
  • No malloc, free or recursion in the parser
  • Separate serializer with fixed-buffer or callback output
  • RFC 4627 and RFC 8259 compliant
  • Optional inline comment support

Ratings & Reviews

No ratings yet

Be the first to rate Lwjson.

People also visit

P

Partial Json Parser JS

Parse partial JSON generated by LLM

AI
Launch
J

Jsonriver

A simple, fast streaming JSON parser built on standards

Entertainment
Launch
O

Oboe.js

A streaming approach to JSON

Developer Tools
Launch
L

Lowdb

Simple and fast JSON database

Developer Tools
Launch
J

JSONCrush

Compress JSON into URL friendly strings

Developer Tools
Launch
A

Anjay

C implementation of the client-side OMA LwM2M protocol

Developer Tools
Launch

Lwjson FAQ

What is LwJSON?

It is a JSON parser library in C, designed for embedded systems and microcontrollers, and it also works on larger PC targets.

How do I choose a parsing mode?

Use streaming parsing on very small microcontrollers. Use classic parsing when the whole JSON text can sit in memory, such as on a PC or a device with several kilobytes of RAM.

Does it allocate memory?

The parser does not call malloc or free. It uses static token allocation, with an optional application-provided pre-allocation.

What license is it under?

The README describes its license as MIT.

How can I contribute?

Fork the GitHub repository, follow the C style rules and format with clang-format, then open a pull request against the develop branch. You can also report bugs or request features through issues.

What are the best Lwjson alternatives?

Popular alternatives to Lwjson include Oboe.js, Lowdb and JSONCrush. See all Lwjson alternatives

Developer Stuff

Badges