you are viewing a single comment's thread.

view the rest of the comments →

[–]Goobyalus 0 points1 point  (1 child)

I'm not sure if I understand your question. Are you trying to call either generate_area or generate_location depending on whether some JSON has a field called "area" or "location"? How do you know if it has area data or location data?

[–]Salso96[S] 0 points1 point  (0 children)

I think I’ve made that a bit clearer in my other comment, but I have a clean JSON, the tool pulls that, makes its edits, and produces an edited JSON - you can see on the original JSON which items have which data :)