Added version-checking infrastructure for JSON serialization.