I'm trying to make a dict into a template (a schema?).
prod_item_template = {'prod_name': '',
'prod_quant': 0,
'prod_id': '',
'added_time': '',
'_template_version_': '0.0.1'}
prod_items will be saved to a json file later.
I've searched for answers and people suggest to use a class instead. However it won't work since items instantiating that class won't be able to serialized to json automatically.
I'm looking for best practice for this task so the answer doesn't have to be limited to dict.