Render infowindow and options as objects in the JSON for a layer