Split out json response parsing

It’s not related to the client API consumption, so create a separate
package for it.