AnsweredAssumed Answered

Why does .NET say invalid JSON?

Question asked by mjfranci on Jun 19, 2017
Latest reply on Jun 20, 2017 by mnielsen-esristaff

I'm trying to access the USNG feature service from USNG 1000m UTM18 - NGA_US_National_Grid using:


Uri serviceUri = new Uri("url here");

ServiceFeatureTalbe featureTable = new ServiceFeatureTable(serviceUri);

Feature layer USNG = new FeatureLayer(featureTable);

await USNG.LoadAsync();


but it throws an exception: Invalid JSON.


Does anyone know why I can't load this service? I run a query of this service in a browser and it returns what seems to be correct JSON data, so why does Visual Studio throw this exception?