Skip to content

Commit

Permalink
Changed the title
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Jan 23, 2014
1 parent f5a1e1d commit 53466a2
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
A malloc-free JSON parser for Arduino
=====================================

An efficient JSON parser for Arduino
====================================

This library is an thin C++ wrapper around the *jsmn* tokenizer: http://zserge.com/jsmn.html

Expand All @@ -10,7 +9,7 @@ It has been written with Arduino in mind, but it isn't linked to Arduino librari


Features
-------
--------

* Based on the well-proven [jsmn](http://zserge.com/jsmn.html) tokenizer
* Supports nested objects
Expand Down Expand Up @@ -43,7 +42,6 @@ Example




How to use ?
-------------

Expand Down Expand Up @@ -74,7 +72,7 @@ To extract data from the JSON string, you need to create a `JsonParser`, and spe
> Each token takes 8 bytes, so `sizeof(JsonParser<32>)` is 256 bytes which is quite big in an Arduino with only 2KB of RAM.
> Don't forget that you also have to store the JSON string in RAM and it's probably big.
> 32 tokens may seem small but it's very descent for an 8-bit processor, you wouldn't get better results with other JSON libraries.
> 32 tokens may seem small, but it's very decent for an 8-bit processor, you wouldn't get better results with other JSON libraries.
### 4. Extract data

Expand Down Expand Up @@ -150,7 +148,6 @@ or simply:
double a = root.getArray(0).getDouble(0);



Common pitfalls
---------------

Expand Down Expand Up @@ -204,8 +201,6 @@ When you pass a `char*` to `JsonParser::parseArray()` or `JsonParser::parseHashT
This is because we want functions like `JsonArray::getString()` to return a null-terminating string without any memory allocation.




Memory usage
------------

Expand Down Expand Up @@ -233,9 +228,6 @@ This table is for an 8-bit Arduino, types would be bigger on a 32-bit processor.
</table>





Code size
---------

Expand Down Expand Up @@ -414,4 +406,4 @@ As you'll see the code size if between 1680 and 3528 bytes, depending on the fea
<td>TOTAL</td>
<td>710</td>
</tr>
</table>
</table>

0 comments on commit 53466a2

Please sign in to comment.