I want to get the json response of graphics layer.How do I convert it.
if I use JSON.stringify(graphics_layer); I get an error of "converting circular structure to json".
Is there any other way or option.
hello Andy Gup , I wanted to save the whole json string as it is in database.
Yes finally I did the same. Thanks for ur reply,now m sure that m going in a correct way.
What are you trying to do with the JSON? You can loop thru the graphics in a GraphicsLayer and use the Graphic.toJson() method: graphic-amd | API Reference | ArcGIS API for JavaScript
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.