class TimeSeriesJSON:

    def __init__(self, f=None, fn=None):
        """
        :param f: file object (_io.TextIOWrapper)
        :param fn: file name as a string
        """
        if f is not None:
            self.__type = 'file'
            self.__file = f
        elif fn is not None:
            self.__type = 'file_name'
            self.__file_name = fn
            self.__file = open(fn)
@@ -1,8 +1,34 @@
+import json%0Aimport ijson%0A%0A
 class Ti
@@ -80,16 +80,28 @@
  fn=None
+, tag='item'
 ):%0A     
@@ -198,16 +198,139 @@
  string%0A
+        :param tag: tag for dividing json items%0A            default value is 'item' because this value is default in ijson%0A
         
@@ -555,8 +555,578 @@
 open(fn)
+%0A%0A        self.__items = self.parse_json_items(tag)%0A%0A    def parse_json_items(self, tag, limit=0):%0A        self.__items = %5B%5D%0A        self.__file.seek(0)%0A        cnt = 0%0A%0A        objs = ijson.items(self.__file, tag)%0A        for obj in objs:%0A            item = json.dumps(obj, %5C%0A                              sort_keys=True, %5C%0A                              indent=4, %5C%0A                              ensure_ascii=True)%0A            self.__items.append(item)%0A            cnt += 1%0A            if limit != 0 and cnt %3E= limit:%0A                break%0A%0A        return self.__items%0A

Make method 'parse_json_items'