There should be generic support for the specified metadata.
Both key and value must consist of non-whitespace characters, which are not colons. Only one colon separates the key and value.
The metadata could be contained in a list in the item like the context/project-arrays:
item.metadata = { 'key':'value', 'key2':'value' }