extractOpt is only for json format  data from front-end