Based on your comment (echoing several json strings), you should do the following:
- Initialize an empty results array;
- Read your file and put it in an array or object using
json_decode()
; - Add this array / object to your results array;
- At the end, use
json_encode()
to encode and echo out your results array.