Import workflow (not state!) using JSON

Is there anyway to import and the workflow for any doctype

I have wrote a diagram and save it to JSON file hope it can gets its data into the ERPNext and generate the workflow itself