move api template and jsond preprocessor