title: How to convert Java Map to a basic Javascript object?
body: <p>I'm starting to use the dynamic rhinoscript feature in Java 6 for use by customers who are more likely to know Javascript than Java.</p>
  
  <p>What is the best way to pass a Map (associative array, javascript obj, whatever) into Javascript so the script-writers can use the standard Javascript dot notation for accessing values?</p>
  
  <p>I'm currently passing a java.util.Map of values into the script, however then the script writer has to write "map.get('mykey')" instead of "map.mykey".</p>
  
  <p>Basically, I want to do the opposite of <a href="https://stackoverflow.com/questions/2559450/rhino-how-to-get-all-properties-from-scriptableobject">this question.</a> </p>