When parsing api response, make json parser parse inputstream directly.