如何在Quartz Job Scheduler中从JSON检索对象值

时间:2018-10-18 20:44:54

标签: grails quartz-scheduler

我有以下格式的json,可以从前端获取它:

json值:      [book:[name:Java,author:Test],id:1]

当我尝试使用Quartz Job Scheduler在schedulerService中检索这些值时,我看不到这些值。下面是代码:

//job controller

try{
   JobDetail job = new JobDetail(request.JSON);
   println request.JSON     //i dont see the JSON values
   def id = context.mergedJobDataMap.get('id');
 }

0 个答案:

没有答案