@classmethod
    def _json_body_(cls):
        json = []
        for series_name, data in six.iteritems(cls._datapoints):
            for point in data:
                json_point = {
                    "measurement": series_name,
                    "fields": {},
                    "tags": {},
                    "time": getattr(point, "time")
                }

                for field in cls._fields:
                    json_point['fields'][field] = getattr(point, field)

                for tag in cls._tags:
                    json_point['tags'][tag] = getattr(point, tag)

                json.append(json_point)
        return json
:return: JSON body of these datapoints.
dataset/ETHPy150Open influxdata/influxdb-python/influxdb/helper.py/SeriesHelper._json_body_