Fixed legacy interface for new JSON format.