Added automatic json conversion of javascript maps.