K
K
Konstantin Malyarov2017-05-17 07:40:21
PHP
Konstantin Malyarov, 2017-05-17 07:40:21

How to return multiple rows in JSON format?

There is ajax that accepts JSON from the server. I know how to send one line and accept it. How to do it for two or more?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-05-17
@Konstantin18ko

One JSON object is accepted. How many lines you pack into it is up to you.
{"строки": ["строка1", "строка2", "строка3"]}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question