Fix the function of convert json to object.