A good start on encoding EsriJSON <WIP>