Fixed compatibility problem and added a JsonManager class

Signed-off-by: Chan Jun Wei <chanjunweimy@gmail.com>