# How should we work with JSON fields in Embeddable?

**URL:** <https://community.embeddable.com/t/how-should-we-work-with-json-fields-in-embeddable/83>\
**Category:** FAQs\
**Created:** [January 6, 2025, 9:44am UTC](https://community.embeddable.com/t/how-should-we-work-with-json-fields-in-embeddable/83 "2025-01-06T09:44:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [January 6, 2025, 9:44am UTC](https://community.embeddable.com/t/how-should-we-work-with-json-fields-in-embeddable/83/1 "2025-01-06T09:44:34Z")

</div>

Some teams store custom data as a JSON inside a database field, like this:  
{“Ford”: “Transit”, “Renault”: “Clio”, “Volkswagen”: “Polo”}

You can put as many fields in the JSON as you like. To use the values themselves in your charts you need to do one of two things:

1. define a separate dimension in your model for each field that you want to have access to, or
2. have a dimension that returns the whole JSON object, but then modify your chart component to handle the JSON object (i.e. use JavaScript to extract the values you need)
