Fix version is None bug, output JSON instead of pickle