Added gson and changed method result handling