simple formated json output, for those who hasn't update to php 5.4 or newer