fixes json formatting and fixes true false issues