How to represent at key-value map in WebIDL

Hello

If this isn't the right forum for this kind of question, be kind to 
direct me to the right place.

What is the correct way to represent a key-value map in WebIDL that is 
to be returned from a function? I haven't found something obvious like a 
map counterpart to sequence<T> (map<KeyT, ValueT>). Two things come to 
my mind:

1) A regular JavaScript object. If so, is there anything from WebIDL i 
can use to describe that object?

2) Define an interface with a getter T (DOMString propName) and describe 
in text the procedure to find out if propName is valid and how to order 
all names.

Thanks

/Adam

Received on Wednesday, 13 February 2013 15:07:04 UTC