api client and json mappings