I have a GH definition generating geometry out of JSON properties. The JSON file is read into the GH definition using ShapeDiver TextfileInput component.
The total number of properties stored in the input JSON file may vary. But there is a minimun set of required properties in each JSON file from which the actual geometry is generated. The other possibly existing properties store additional data but are not relevant to the logic of building the geometry inside the GH definition.
On the client-side I read in the JSON and extract distinct properties. I am using those to create input fields for each of the distinct properties found in the uploaded JSON. The total number of input fields on the web page may therefore vary depending on the JSON file (all fields share the same minimum amount of required properties).
As I do not know in advance how many input fields I will need to have, I cannot simply add ShapeDiver TextInput components to my GH definition to control the parameter values.
Is there a way to update the JSON file on the fly from the client-side using e.g.
Or would you propose an alterative implementation?