title: How to parse a small JSON file with jsmn on an embedded system?
body: <p>I need to parse a small JSON file on an embedded system (only 10K RAM/flash). The JSON is:</p>
  
  <pre><code>{
  "data1":[1,2,3,4,5,6,7,8,9],
  "data2":[
       [3,4,5,6,1],
       [8,4,5,6,1],
       [10,4,5,3,61],
       [3,4,5,6,1],
       [3,4,5,6,1],
       [3,4,5,6,1] 
  ]}
  </code></pre>
  
  <p><strong><a href="https://bitbucket.org/zserge/jsmn/wiki/Home" rel="nofollow noreferrer">jsmn</a></strong> looks great to fit the requirement, but it's not like most JSON parsers, since it only gives you tokens. I tried, but could not figure it out.</p>
  
  <p>Could someone share an example of how to parse it with jsmn?</p>