Fixes json formatting.