Redo JSON serialization/deserialization for PigVisualizer.