I'm very new to ArcGIS and I'm currently exploring the js API. I haven't seen documentation for this but can i use a json datasource (returned from an ajax call) as the data items/points for my map? Can anyone point me to an example?
If you don't have any Map Service (ArcGIS, WMS, KML, etc) but just a list of geometries fetched from somewhere else you must use a GraphicsLayer. You can use the default GraphicsLayer of the map or add another GraphicsLayer.
for each geometry:
map.graphics.add(new Graphic(geometry, symbol));