# Invalid Key Perspective Binding

**URL:** <https://forum.inductiveautomation.com/t/invalid-key-perspective-binding/53474>\
**Category:** Ignition\
**Created:** [November 25, 2021, 8:54pm UTC](https://forum.inductiveautomation.com/t/invalid-key-perspective-binding/53474 "2021-11-25T20:54:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkhoshroo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pkhoshroo/32/26801_2.png) [@pkhoshroo](https://forum.inductiveautomation.com/u/pkhoshroo)\
**Post date:** [November 25, 2021, 8:54pm UTC](https://forum.inductiveautomation.com/t/invalid-key-perspective-binding/53474/1 "2021-11-25T20:54:55Z")

</div>

Hello all,

I am using a flex repeater in my perspective project and I bound the instance to a named query. What should be the return format of the instance? Is it json? If yes, I get an invalid key error on json.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/0860ccbe0440e31db0e9403995ab31443029914d.png)

I am assuming the error is because of these two properties:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3bfe7cfb9829d4bb10862eb3f85460010111abd1.png)

Because when I bound the value of the instance to that named query I do not get these two parameters.

In this case what should be the JSON transform format?  
How to capture the value?

```auto
		return [
		{ "instanceStyle": {
	  		"classes": ""
	  		},
	 	 "instancePosition": {}
	}
	]

```

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 25, 2021, 11:09pm UTC](https://forum.inductiveautomation.com/t/invalid-key-perspective-binding/53474/2 "2021-11-25T23:09:27Z")

</div>

The `instances` prop doesn’t need those two instanceX props to be valid. They just provide extra config, but will use the defaults if not provided.

What is your named query returning? You might need to post-process it with a script transform to get it into the format you need
