Change JSON file text using text input

I want to change the text question, options, and points_per_correct_answer from my JSON file permanently using text input after clicking the save button. can anyone help me?

{
  "questions": [
    {
      "question": "Apa ibukota Indonesia?",
      "options": ["Jakarta", "Bandung", "Surabaya", "Medan"],
      "answer": "Jakarta"
    },
    {
      "question": "Siapa presiden pertama Indonesia?",
      "options": ["Soekarno", "Soeharto", "Habibie", "Megawati"],
      "answer": "Soekarno"
    }
  ],
  "points_per_correct_answer": 10
}

I’m not sure if i understand your question, but strictly speaking, if you convert the json to a variable structure, you can change it as you like, and then use the globalVariable to json function to make it back to a json.