

def json_to_file(self, target, sort=True, indent=0):
    'Convert the asset to JSON and write it to the file stream.'
    json_encoder.FLOAT_REPR = float_to_string
    if (indent > 0):
        return json_dump(self.asset, target, sort_keys=sort, indent=indent)
    else:
        return json_dump(self.asset, target, sort_keys=sort, separators=(',', ':'))

dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py JsonAsset.json_to_file/original