Refine some codes in JSON.

Signed-off-by: 核心力量 <kernelforce@gmail.com>
Reflect templates is available in JSON.
Through this feature, reflect templates could be predefined which would be used implicitly to reflect Object values while calling json.attr(key,value) method.

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