I have string of data basically which has a objects with in the objects..
{\"id\":\"XXXX\", \"name\": \"xyz\", \"user\" : { \"id\": \"XXXX\", \"username\":\"
I have figured out how to generate the_dict['user']['group']['id']
dynamically through Python's eval
expression.
Keys is the input from the user, separated by :
. Example: user:group:id
.
CODE:
RefCount = 0
RespDict = json.loads(JSON_Datalist.content) #convert strings to Java object using JSON
SplitKeys = Keys.split(":")
KeyCount = len(SplitKeys)
CommandText = "RespDict" #To setup command line based on keys information
while (RefCount