How to access .json file

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.

Hello @mat.elwarth

Maybe these threads are able to help you out:

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.

1 Like