Fix JSON Horizontal-swing, Add switch conversion