'Return the JSON body of given datapoints.
:return: JSON body of these datapoints.'

@classmethod
def _json_body_(cls):

    json = []
    for (series_name, data) in six.iteritems(cls._datapoints):
        for point in data:
            json_point = {u'measurement': series_name, u'fields': {}, u'tags': {}, u'time': getattr(point, u'time')}
            for field in cls._fields:
                json_point[u'fields'][field] = getattr(point, field)
            for tag in cls._tags:
                json_point[u'tags'][tag] = getattr(point, tag)
            json.append(json_point)
    return json
