Mock JSON response consumption on client side