Skip to main content

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

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.


Reply