# How to access .json file

**URL:** <https://forum.universal-robots.com/t/how-to-access-json-file/42048>\
**Category:** URCap Development\
**Created:** [January 18, 2026, 10:39pm UTC](https://forum.universal-robots.com/t/how-to-access-json-file/42048 "2026-01-18T22:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mat.elwarth](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mat.elwarth](https://forum.universal-robots.com/u/mat.elwarth)\
**Post date:** [January 18, 2026, 10:39pm UTC](https://forum.universal-robots.com/t/how-to-access-json-file/42048/1 "2026-01-18T22:39:47Z")

</div>

Hi Forum,

I’m trying to write values to a .json periodically (via a Python Daemon) and then read them through a toolbar, but I cannot figure out how to configure my paths.

I have the .json file with the .py daemon file in my resources folder (in a folder following the same path as my Java project files: …/impl), but I can’t write or read to my json.

If you have done something similar before please tell me what the correct path should be to write and read from my .json.

Thanks.

---

<div class="post-metadata">

**Author:** ![sko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sko/32/573_2.png) [@sko](https://forum.universal-robots.com/u/sko)\
**Post date:** [January 19, 2026, 8:50am UTC](https://forum.universal-robots.com/t/how-to-access-json-file/42048/2 "2026-01-19T08:50:12Z")

</div>

Hello @mat.elwarth

Maybe these threads are able to help you out:

> [@Possibilities to write to file](https://forum.universal-robots.com/t/possibilities-to-write-to-file/706/12):
>
> Hi! I’ve installed the urcap xmlrpcfile with polyscope simulator version 3.5. But I’ve had a problem: when i run the code file.mkfile(“text”.txt), this line of code not return a true value. How can I do? I’ve checked the checkbox run file demons. Thanks!

> [@Debugging python daemon](https://forum.universal-robots.com/t/debugging-python-daemon/4610):
>
> Hi together, I want to use an daemon in my UrCap. So I think I implemented the daemonService and started the daemon without an error. If I start the python script manually on the Laptop it works fine. But the output of my python script isn’t displayed in the terminal. Is there an possibility to check if my daemon is working? Is there a possibility to debug the daemon, while the PolyScope is working? Thanks for your help, Casimir

> [@Loading Script File from the Resources Folder](https://forum.universal-robots.com/t/loading-script-file-from-the-resources-folder/3391):
>
> I am trying to load a urscript file from the resources folder and execute it in the Installation node (similar to the ScriptWrapper Urcap example), but the file cannot be found from the Java code. I saw @recognitionrobotics was having a similar issue, but with no resolution. I placed the script file in the resources folder. Executing “jar tf” on the final jar file verifies the file is where it supposed to be, however my code cannot find it: String filePath = getClass().getClassLoader().getRes…

---

<div class="post-metadata">

**Author:** ![mat.elwarth](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mat.elwarth](https://forum.universal-robots.com/u/mat.elwarth)\
**Post date:** [January 20, 2026, 8:06pm UTC](https://forum.universal-robots.com/t/how-to-access-json-file/42048/3 "2026-01-20T20:06:36Z")

</div>

I’ve since found success in a different approach: programmatically creating a .json file in the /programs/ folder of the robot (or URSim). If you have a .json in the resources it gets compressed along with your project files, so I think that means you can’t make changes to the .json after compiling.

I’m not sure if that’s 100% correct, but my other approach worked.
