Refine some codes in JSON.Context while parsing a file.

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