Skip to main content
Question

Relocate file

  • February 11, 2025
  • 1 reply
  • 21 views

magda_cz
Contributor
Forum|alt.badge.img+2

I have hundreds of json file saved to one location, they have a structure as example below: 

[
    {
        "json_featuretype" : "1da87ac9-2472-42da-a80f-cba37a36cce5",
        "path_directory_windows" : "C:\\Magda_H\\test\\",
        "uuid" : "1da87ac9-2472-42da-a80f-cba37a36cce5"
    }
]

 

I’d like to use PythonCaller to save them to location as state under:  "path_directory_windows" : "C:\\Magda_H\\test\\". Can I please ask for the help with creating a python script to run this. Thank you

1 reply

david_r
Celebrity
  • February 11, 2025

Why use Python and not the JSON Reader or the JSONFragmenter etc transformers?

They’re much simpler to configure and maintain if you’re not comfortable using Python.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings