Move generateVariableData to model
Adds JSON and RAW formats