# how do i convert 'SimplePublicObjectWithAssociations'

**URL:** <https://community.hubspot.com/t/how-do-i-convert-simplepublicobjectwithassociations/64205>\
**Category:** APIs & Integrations\
**Created:** [August 31, 2022, 6:33pm UTC](https://community.hubspot.com/t/how-do-i-convert-simplepublicobjectwithassociations/64205 "2022-08-31T18:33:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![karien](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karien/32/9776_2.png) [@karien](https://community.hubspot.com/u/karien)\
**Post date:** [September 3, 2022, 6:41am UTC](https://community.hubspot.com/t/how-do-i-convert-simplepublicobjectwithassociations/64205/5 "2022-09-03T06:41:33Z")

</div>

ok i found my problem, i dont need to use json to convert this object into dict. so i can unpack it…

i simply need to use the response to get what i need… how easy is that, thats if you know…no conversions needed… no unpacking of nested dictionaries… lists etc.

`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)firstname = api_response.properties["firstname"]-->Karien`

---

_[View the full topic](https://community.hubspot.com/t/how-do-i-convert-simplepublicobjectwithassociations/64205)._
