minus-square4wd@programming.devtoProgramming@programming.dev•What is the best way to store data for exceptional cases among nested objects in arrays in JSON?linkfedilinkarrow-up0·5 months agoWhat about using enums? In this case you will have to specify them for all records, but this ensures that the field will always be present. enum license_owner { regular_citizen = 0, embassy, government, ... } linkfedilink
What about using enums? In this case you will have to specify them for all records, but this ensures that the field will always be present.
enum license_owner { regular_citizen = 0, embassy, government, ... }