Added version-safe method for getting json from responses