I have created a geoprocessing task that performs a join, and converts to a JSON which then can be retrieved by the client. The reason for this is to limit the amount of memory being used on the server. I do not want to create lots of feature classes on the server, I want the layers to be stored client side. I also strip some fields from features in my JSON before turning it into a feature collection for use in a Feature Layer. I use a Class Breaks Renderer to visualize my data on the map. I am now trying to display the feature layer in a legend, but am having trouble doing so. Is it possible to display my info in the legend? Thanks.