For now I am trying with an input type = "text"
<label for="psw"><b>name</b></label>
<input type="text" placeholder="Insert ValueXml value" name="psw" required>
to generate a JSON file with default values, where the input changes only this value ("ValueXml": "Accounting Header 1"). This should be the JSON that should come out (a lot of values are prefixed so I don't have to change them all)
{
    "fileType": {
        "accountingType": {
            "docGroup": 100,
            "docApp": 100,
            "decimals": 2
        }
    },
    "data": {
        "format": "documentchange",
        "error": "",
        "data": [
            {
                "document": {
                    "fileVersion": "1.0.0",
                    "creator": {
                        "name": "FinancialPlaWriter",
                        "version": "1.0.0"
                    },
                    "dataUnits": [
                        {
                            "nameXml": "FileInfo",
                            "data": {
                                "rowLists": [
                                    {
                                        "rows": [
                                            {
                                                "fields": {
                                                    "SectionXml": "Base",
                                                    "IdXml": "HeaderLeft",
                                                    "ValueXml": "Accounting Header 1"
                                                },
                                                "operation": {
                                                    "name": "modify"
                                                }
                                            },
                                            {
                                                "fields": {
                                                    "SectionXml": "AccountingDataBase",
                                                    "IdXml": "OpeningDate",
                                                    "ValueXml": "20210101"
                                                },
                                                "operation": {
                                                    "name": "modify"
                                                }
                                            },
                                            {
                                                "fields": {
                                                    "SectionXml": "AccountingDataBase",
                                                    "IdXml": "ClosureDate",
                                                    "ValueXml": "20231231"
                                                },
                                                "operation": {
                                                    "name": "modify"
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        }
                    ]
                }
                        
            }
                                            
        ]
    }
}
example "ValueXml": "Accounting Header 1", he wants the user to enter the name he wants like: "ValueXml": "MAMMA_MIA" through an HTML input such as:
so I don't know how to create such a JSON file without blowing my head Do you by any chance know a way?
 
     
     
    