import json import numpy as np test = {'value': np.int64(1)} obj=json.dumps(test)