This is a standard JSON response.
What you are looking to do is parse JSON in what appears to be PHP.
If you haven't already you can use json_decode() to convert it to an array and tell it to return the numeric key #2.
Deposit #38 is the third element in the object, but in programming zero is the first position -- therefore Deposit #38 is actually labeled #2 in the object.
print_r($json["result"]["deposits"][2]);