If I wanted to make one request, but return multiple groups of responses, how would I separate them to be able to parse them in jQuery and get the .length as well of each group?
First Group (A)
[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
Second Group (B)
[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
Total Response (Single request):
[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
,[
{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
,{"name":"Tu\u011Frul","surname":"Topuz","message":"Hello World"}
]
Or would I return it in another way to properly do this? Or would I have to do them separately, I prefer to keep it in one response.
You can make them into an array, or an object with each group as an element in the array or object
object
array