Retrieving json from controller