# Property value saved as string to flow.json instead of number

**URL:** <https://discourse.nodered.org/t/property-value-saved-as-string-to-flow-json-instead-of-number/7363>\
**Category:** Developing Nodes\
**Created:** [29 January 2019 11:53 UTC](https://discourse.nodered.org/t/property-value-saved-as-string-to-flow-json-instead-of-number/7363 "2019-01-29T11:53:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janoslaszlo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janoslaszlo/32/5644_2.png) [@janoslaszlo](https://discourse.nodered.org/u/janoslaszlo)\
**Post date:** [29 January 2019 11:53 UTC](https://discourse.nodered.org/t/property-value-saved-as-string-to-flow-json-instead-of-number/7363/1 "2019-01-29T11:53:03Z")

</div>

Hi,  
I added an option list to an existing node to enable selecting an existing property.  
The value of the property is saved as string (e.g. "address":"72") to the flow.json instead of "address":72.  
Actually I copied the tags of another property and renamed the class and the id. The source property works fine and its selected value is saved as number.  
Please advise how I can force the property value to be saved as number to the flow.json.  
BR,  
Janos

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 January 2019 12:15 UTC](https://discourse.nodered.org/t/property-value-saved-as-string-to-flow-json-instead-of-number/7363/2 "2019-01-29T12:15:25Z")

</div>

Hi @janoslaszlo

Without seeing exactly what you've done, it's hard to know why it isn't working.

What changes did you make to the nodes html file?

---

<div class="post-metadata">

**Author:** ![janoslaszlo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janoslaszlo/32/5644_2.png) [@janoslaszlo](https://discourse.nodered.org/u/janoslaszlo)\
**Post date:** [3 February 2019 14:46 UTC](https://discourse.nodered.org/t/property-value-saved-as-string-to-flow-json-instead-of-number/7363/3 "2019-02-03T14:46:28Z")

</div>

Hi @knolleary,

I changed this:

```
    <div class="form-row">
    <label for="node-config-input-address"><i class="fa fa-user"></i> Address</label>
    <input type="text" id="node-config-input-address" placeholder="0x48">
</div>

```

to this:

```
<div class="form-row">
    <label for="node-input-address"><i class="fa fa-address"></i> Address</label>
 	<select id="node-input-address">
        <option value=72 >0x48</option>
        <option value=73 >0x49</option>
    </select>

</div>

```

in [https://github.com/cinqueon/node-red-contrib-ads1x15/blob/master/ads1x15/ads1x15.html](https://github.com/cinqueon/node-red-contrib-ads1x15/blob/master/ads1x15/ads1x15.html)

BR,  
Janos
