Jul-01-2019, 08:04 PM
Hi Guys,
I'm trying to loop some JSON which i have created using PHP, sample:
regards
Graham
I'm trying to loop some JSON which i have created using PHP, sample:
{ "action": [ "val1|0|0|val4", "val1|val2|0|val4" ] }I seperate the values using a pipe | which i will then split once i get each line looped, i have so far (very basically):
y = json.loads(_json) for line in _json.split(y): print(y)I'm not sure the best weay to go about this, any help would be appreciated.
regards
Graham