Generate metadata type definition(s) from a JSON sample