Select to view content in your preferred language

Invalid JSON Exception

1368
2
06-11-2018 10:39 PM
YashvitNaik
Occasional Contributor

On trying to load Layers as per the documented code that looks something like:

Uri serviceUri = new Uri("url ");

ServiceFeatureTable featureTable = new ServiceFeatureTable(serviceUri);

FeatureLayer  featureLayer= new FeatureLayer(featureTable);

await featureLayer.LoadAsync();

I get  “Esri.ArcGISRuntimeException: Invalid JSON  at System RuntimeExceptionServices.Exception”.

This Exception is thrown on a Android Device as well as iOS Ipad, both applications developed on Xamarin platform on the current build of Esri - v100.2.0.

If I run a query of this service in a browser it returns what seems to be correct JSON data and the layer in question here gets plotted on our web portal (via Javascript calls) too. 

Could this be a build issue ?

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
0 Kudos
YashvitNaik
Occasional Contributor

Yes its the same issue, Posted again since it was a old thread.

0 Kudos