I'm trying to use echo_foreach_split and echo_location_async to merge few single JSON requests into one JSON array.
The problem is that I can't find how to join all the responses with a comma.
Adding echo ','; to the loop doesn't help, as having extra comma at the end breaks JSON syntax.
Any way to do it? I could use lua, probably, but echo_foreach_split seemed like an ideal fit.
I'm trying to use
echo_foreach_split
andecho_location_async
to merge few single JSON requests into one JSON array. The problem is that I can't find how to join all the responses with a comma. Addingecho ',';
to the loop doesn't help, as having extra comma at the end breaks JSON syntax.Any way to do it? I could use lua, probably, but
echo_foreach_split
seemed like an ideal fit.