Answer the question
In order to leave comments, you need to log in
How to send data to json database?
How can this object be sent to a json file?
var obj = {
section: "Экзамен",
tickets: [],
position: 27
}
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
Where do you store the json base? Is it php hosting or something else?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question