accept and parse json responses, and handle V3 api