ArcGIS JavaScript API: model/bean_to_json (MapServer)
Built using the
ArcGIS API for JavaScript