import ujson

CONFIG_FILE = '/config.json'
			# config setting
config = {}
config['name'] = 'sensor001'
config['location'] = 'Tokyo'
config['ID'] = 'ABCD_0001_ZZ'
config['lat_lng'] = [35.41, 139.45]

			# saving config data
with open(CONFIG_FILE, 'w') as f:
   ujson.dump(config, f)

			# show saved file
with open(CONFIG_FILE, 'r') as f:
   print(f.read())
