# Change an object to an array

**URL:** https://discourse.nodered.org/t/change-an-object-to-an-array/68715
**Category:** General
**Created:** [8 October 2022 11:29 UTC](https://discourse.nodered.org/t/change-an-object-to-an-array/68715 "2022-10-08T11:29:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [8 October 2022 11:31 UTC](https://discourse.nodered.org/t/change-an-object-to-an-array/68715/2 "2022-10-08T11:31:28Z")

</div>

Answered similar question not more than 2 hours ago

> [@Remove header from gps object data](https://discourse.nodered.org/t/remove-header-from-gps-object-data/68688/4):
>
> In a chnage node set msg.payload to JSONata J: $$.payload.\* This will return an array of values e.g [-34.130000, 22.09785, -32.4, etc....]

Looking at your image  
`$split($$.payload.col1, ",")`

---

_[View the full topic](https://discourse.nodered.org/t/change-an-object-to-an-array/68715)._
