automatic handle response JSON