# Path: sacred/serializer.py
# def flatten(obj):
#     return _json.loads(json.encode(obj, keys=True))
# 
# def restore(flat):
#     return json.decode(_json.dumps(flat), keys=True)


import pytest
import sacred.optional as opt
from sacred.serializer import flatten, restore
#!/usr/bin/env python
# coding=utf-8




@pytest.mark.parametrize(
    "obj",
    [
        12,
        3.14,
        "mystring",

# Path: sacred/serializer.py
# def flatten(obj):
#     return _json.loads(json.encode(obj, keys=True))
# 
# def restore(flat):
#     return json.decode(_json.dumps(flat), keys=True)


# Path: tests/test_serializer.py
import pytest
import sacred.optional as opt
from sacred.serializer import flatten, restore

#!/usr/bin/env python
# coding=utf-8




@pytest.mark.parametrize(
    "obj",
    [
        12,
        3.14,
        "mystring",

        "αβγδ",