Skip to content
Snippets Groups Projects
Commit 655189fd authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[stats] Import simplejson as json to make it easy to swap

parent cd97d426
No related branches found
No related tags found
1 merge request!64Factorize simplejson
...@@ -50,7 +50,7 @@ Forward impored from :py:mod:`beat.backend.python.stats`: ...@@ -50,7 +50,7 @@ Forward impored from :py:mod:`beat.backend.python.stats`:
import os import os
import copy import copy
import simplejson import simplejson as json
from . import schema from . import schema
from . import prototypes from . import prototypes
...@@ -224,7 +224,7 @@ class Statistics(object): ...@@ -224,7 +224,7 @@ class Statistics(object):
dict: JSON representation dict: JSON representation
""" """
return simplejson.dumps(self._data, indent=indent) return json.dumps(self._data, indent=indent)
def as_dict(self): def as_dict(self):
"""Returns self as a dictionary""" """Returns self as a dictionary"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment