jquery – How can I update my json file in server using Ajax

I want to put extra data to my Json file

 var eng = {  "eng": {
                        "q1": {
                            "question": "What is abbrevation of AI?",
                            "options": [
                                "art intenlligent",
                                "artificial intelligent",
                               
                            ],
                            "answer": "artificial intelligent"
                        }
                    };



    $.ajax({
           url: URL,
           data: JSON.stringify({ quiz: eng }),
           contentType: "application/json; charset=utf-8",
           type: "POST",
           dataType: "json"
           })

I want to insert data in client site to my Jscon file(quiz) in my server
I tried to modify $.ajax({data: {quiz:JSON.stringify(eng)})

Read more here: Source link