parse trained parameters from caffe and generate a json file