Revert "changed json msg array and added empty check"

This reverts commit 97c6ae47ec75529860879a7d18816824fc846a53.