# Converting dataset to json HELP

**URL:** <https://forum.inductiveautomation.com/t/converting-dataset-to-json-help/60311>\
**Category:** General Discussion\
**Created:** [June 2, 2022, 4:15pm UTC](https://forum.inductiveautomation.com/t/converting-dataset-to-json-help/60311 "2022-06-02T16:15:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 2, 2022, 4:29pm UTC](https://forum.inductiveautomation.com/t/converting-dataset-to-json-help/60311/2 "2022-06-02T16:29:59Z")

</div>

> [@Looping through JSON](https://forum.inductiveautomation.com/t/looping-through-json/53900/5):
>
> Don’t use ‘List’ as a variable name. This is a terrible practice even if you know it’s wrong and you’re only writing test code. Just kick the habit of using python built in names as variables, so nothing like list,dict,str,int,tuple,set,float should ever be used as variable names. And there are many others besides those You can enumerate the instances and add the index to them in the for loop with the enumerate() function. Something like this should do: instances = [ { 'mes\_spec':…

---

_[View the full topic](https://forum.inductiveautomation.com/t/converting-dataset-to-json-help/60311)._
