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

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

parent 9c269be4
No related branches found
No related tags found
1 merge request!64Factorize simplejson
......@@ -44,7 +44,7 @@ Validation for experiments
import os
import collections
import simplejson
import simplejson as json
from . import utils
from . import algorithm
......@@ -1306,7 +1306,7 @@ class Experiment(object):
str: The JSON representation for this object
"""
return simplejson.dumps(self.data, indent=indent, cls=utils.NumpyJSONEncoder)
return json.dumps(self.data, indent=indent, cls=utils.NumpyJSONEncoder)
def __str__(self):
......
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