# Passing a JSON object into a input parameter in perspective

**URL:** <https://forum.inductiveautomation.com/t/passing-a-json-object-into-a-input-parameter-in-perspective/69816>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 14, 2023, 11:04am UTC](https://forum.inductiveautomation.com/t/passing-a-json-object-into-a-input-parameter-in-perspective/69816 "2023-02-14T11:04:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dylan\_Francis](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dylan_francis/32/80503_2.png) [@Dylan\_Francis](https://forum.inductiveautomation.com/u/Dylan_Francis)\
**Post date:** [February 14, 2023, 11:04am UTC](https://forum.inductiveautomation.com/t/passing-a-json-object-into-a-input-parameter-in-perspective/69816/1 "2023-02-14T11:04:03Z")

</div>

hello everyone, im having trouble trying to pass a lengthy JSON such as this one:[https://randomuser.me/api/](https://randomuser.me/api/) into a input parameter to dynamically populate information such as the name of the random user, does anyone have input on this?

---

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [February 14, 2023, 11:28am UTC](https://forum.inductiveautomation.com/t/passing-a-json-object-into-a-input-parameter-in-perspective/69816/2 "2023-02-14T11:28:09Z")

</div>

Posting your code might be helpful.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [February 14, 2023, 4:30pm UTC](https://forum.inductiveautomation.com/t/passing-a-json-object-into-a-input-parameter-in-perspective/69816/3 "2023-02-14T16:30:21Z")

</div>

Post the issue and resolution in case someone else has the same question

---

<div class="post-metadata">

**Author:** ![Dylan\_Francis](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dylan_francis/32/80503_2.png) [@Dylan\_Francis](https://forum.inductiveautomation.com/u/Dylan_Francis)\
**Post date:** [February 15, 2023, 7:56pm UTC](https://forum.inductiveautomation.com/t/passing-a-json-object-into-a-input-parameter-in-perspective/69816/4 "2023-02-15T19:56:16Z")

</div>

okay so what i did was this: on the view i made a startup script:  
source1=system.net.httpGet([https://randomuser.me/api/](https://randomuser.me/api/) )|  
source2 = system.util.jsonDecode(source1)|  
self.view.params.details = source2

so when i started i was getting the text from the website into the input parameter but as a giant string, so all i had to do was decode it and wallah, proper formating.
