partitions VFLToJSON into more functions