2020-10-16 13:11:00 +02:00
|
|
|
import sys
|
|
|
|
import json
|
|
|
|
|
|
|
|
data = sys.stdin.read()
|
|
|
|
json_data = json.loads(data)
|
|
|
|
for collection, models in json_data.items():
|
2021-08-30 17:11:15 +02:00
|
|
|
for model in models.values():
|
2020-10-16 13:11:00 +02:00
|
|
|
for field in list(model.keys()):
|
|
|
|
if field.startswith("meta_"):
|
|
|
|
del model[field]
|
|
|
|
|
2021-08-30 17:11:15 +02:00
|
|
|
sys.stdout.write(json.dumps(json_data, separators=(',', ':')))
|