Use the new syntax in the structuredError function for dictionaries.