# How to read values from config.json file in Custom UI

**URL:** <https://community.developer.atlassian.com/t/how-to-read-values-from-config-json-file-in-custom-ui/59320>\
**Category:** Jira Cloud\
**Tags:** forge\
**Created:** [June 22, 2022, 1:50pm UTC](https://community.developer.atlassian.com/t/how-to-read-values-from-config-json-file-in-custom-ui/59320 "2022-06-22T13:50:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnjaliChaudhary](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/anjalichaudhary/32/45446_2.png) [@AnjaliChaudhary](https://community.developer.atlassian.com/u/AnjaliChaudhary)\
**Post date:** [June 22, 2022, 1:50pm UTC](https://community.developer.atlassian.com/t/how-to-read-values-from-config-json-file-in-custom-ui/59320/1 "2022-06-22T13:50:22Z")

</div>

I have made a config.json file inside the static/hello-world directory in forge CustomUI.

```auto
{
    "IQP_Server" : "https://9.109.123.240:8443/ignitePlatformURL"
}

```

Can someone please help me with how can i access the `IQP_Server` variable inside the `App.js` file? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ianRagudo](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ianragudo/32/44527_2.png) [@ianRagudo](https://community.developer.atlassian.com/u/ianRagudo)\
**Post date:** [June 23, 2022, 1:59am UTC](https://community.developer.atlassian.com/t/how-to-read-values-from-config-json-file-in-custom-ui/59320/2 "2022-06-23T01:59:55Z")

</div>

Hi @AnjaliChaudhary,

In your `App.js` try importing the `config.json` file and accessing it from there. Can something like this address your use case?

```auto
import configData from './config.json';
...
console.log(`IQP_Server Value: ${configData.IQP_Server}`);

```

Hope this helps.

Ian

---

<div class="post-metadata">

**Author:** ![AnjaliChaudhary](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/anjalichaudhary/32/45446_2.png) [@AnjaliChaudhary](https://community.developer.atlassian.com/u/AnjaliChaudhary)\
**Post date:** [June 23, 2022, 7:09am UTC](https://community.developer.atlassian.com/t/how-to-read-values-from-config-json-file-in-custom-ui/59320/3 "2022-06-23T07:09:20Z")

</div>

Yes. It worked. Thanks a lot.
