Perspective Pipes generation

Hi,

I would like to know how i can generate de pipe json struct via stripting. The goal of this is to read the origin and all connecton from a xml file (This i’ve already done). So i could import this file and generated the piping automaticcaly.

Regards