finish client json preparation