adding json support for creating a new pipeline