undo extra JSON encoding for attributes