[ad_1]
json1_text = [v for i in json_data for k,v in i.items() if isinstance(v,str)]
print (json1_text)
Result:
['Salam', 'Hello Friend']
0
[ad_2]
solved .get() returning letters rather than strings
[ad_1]
json1_text = [v for i in json_data for k,v in i.items() if isinstance(v,str)]
print (json1_text)
Result:
['Salam', 'Hello Friend']
0
[ad_2]
solved .get() returning letters rather than strings