mjson icon indicating copy to clipboard operation
mjson copied to clipboard

C/C++ JSON parser, emitter, JSON-RPC engine for embedded systems

Results 25 mjson issues
Sort by recently updated
recently updated
newest added

On Nordic nRF52 boards there is no standard implementation of alloca, so we need to include it from that is provided in the nRF52 SDK. On these projects you typically...

The error occurs when including mjson in an application for a target other than Arduino, in this case, Zephyr embedded OS.

The parser accepts invalid numbers (i.e., leading zeros). This is not allowed according to the [specification](https://www.ietf.org/rfc/rfc4627.txt?number=4627) in section 2.4. It can be reproduced with the input: {"a":00000000}

Replacing `alloca` with `malloc` and `free` to prevent a stack overflow.

A request like this, {"jsonrpc": "2.0", "params": [42, 23], "id": 1}. Should we send back a error response with id?

These changes try to align the error messages generated in the mjson jsonrpc handler with the error messages in the [JSON-RPC 2.0 Specification](https://www.jsonrpc.org/specification). An example of such behavior is seen...

The precision argument while printing a double with given precision seems to be treated as width instead. Documentation ``` %.*g, print floating point number with given precision. Expect int, double...

the trigger input: 8891110122900e913013935755114

Hi, I find a rare case when utf-8 byte order mark (BOM) \xef\xbb\xbf involved. Specifically, it will reject the json text when handling such case: ``` const char *s =...

This PR should fix the warnings for unused variables which is described in #51