Since you're making changes anyway, please drop the `<br>` and newline and wrap this in `json_encode()`.