try: api_response = client.crm.objects.basic_api.get_by_id(object_type="0-1", object_id=f'{object_id_contact}', properties=["firstname","lastname"], archived=False) pprint(api_response) json_data = json.loads(api_response) print(json_data)exception = the JSON object must be str, bytes or bytearray, not 'SimplePublicObjectWithAssociations'how do i convert this "simplePublicObject*" to dict or anything i can unpack? do you know? thx
ok i tried converting to string, its working but new line (/n) included, just more work. if you maybe know of better way, preferrably dict. im not familiar with this object type.