I do a post from a form and when the json returns with the objects of a sql table it gives me without problems .. but when there is no data in the table and returns empty the json returns it to me badly formed example I want to control it for that I do not get errors like in the image
{"data:]"}