code: def loads(s):
      
      _decoder = json.JSONDecoder()
  
      while s:
          s = s.strip()
          obj, pos = _decoder.raw_decode(s)
          if not pos:
              raise ValueError('no JSON object found at %i' % pos)
          yield obj
          s = s[pos:]
docs: Generate a sequence of JSON values from a string.