title: Slice Json array in Python
body: <p>I have a long Json array which I want to slice (e.g. get a sub-array of first 100 objects as Json array).</p>
  
  <p>I don't want to use json.loads(), slice from Python list and then json.dumps() back to Json since it hurts my performances.</p>
  
  <p>I was thinking maybe there is another way to slice the Json array without all of that but couldn't find one. Any suggestion?</p>
  
  <p>EDIT: this is how I checked that the json.loads() take 1.5 sec:</p>
  
  <pre><code>        start_deserialize = time.time()
          log_list = list(json.loads(log_list))
          end_deserialize = time.time()
          print("deserialize took = "+str(end_deserialize-start_deserialize))
  </code></pre>
  
  <p>And as I mentioned at the beginning, it is a very long Json array.</p>