piggy: now returning response json from client