new json format for flows