made json output  valid