JSON.ValueOf(Object, Map<Class<?>,Object>) method will first check whether the templates contain the object's class or not.

Signed-off-by: 核心力量 <kernelforce@gmail.com>