Is it possible to have a JSON file with variable something like below? This will be processed by python.
ver_file:
{
"version":{
"minor": 10,
"major": 1.0.0.$minor
}
}
so can I read it as below:
import json
with open(ver_file,"r") as vf:
ver_config=json.load(vf)
print(ver_config["version"]["major"])# I want this to print 1.0.0.10
I know I can concatenate major and minor with a dot, but I am working on a bigger problem where the variable usage can avoid duplicate info in json file and avoid concatenations in the python script.