cleaner escaping of attribute json