Separate json decode from curl request
json decode in client
#6 - correctly pass the crumb