JSON serialization for layout paths