How to format response content from web.gottext

i have a reponse from a php script “echo json_encode($response);”
the first label shows the raw response content
second label i tried editing out the unneccesary symbols
now what i want the label to print out is
500 apple
200 orange
total : ₱500
but instead the print out in label is like in the picture

Decode the json… convert the json into list by using list from table text