D
D
Dmitry Nikolaev2019-11-08 16:04:57
JavaScript
Dmitry Nikolaev, 2019-11-08 16:04:57

How to send data to json database?

How can this object be sent to a json file?

var obj = {
            section: "Экзамен",
            tickets: [],
            position: 27
        }

I use this function:
function getJson(data) {
            $.ajax({
                url: "/questions.json",
                dataType: 'json',
                data: data,
                success: console.log("Прошло успешно")
            });
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadim Zakirov, 2019-11-08
@zkrvndm

Where do you store the json base? Is it php hosting or something else?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question