format entries updated

format_entries() function produces output in json format. Output set into response for testing purpose.