1

Closed

Unable to generate the code: Unexpected character encountered while parsing value: . Line 1, position 1.

description

I attempt to Generate the C# class, and I get the above error.



Sample JSON
GetLocationCoordinates({"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":1,"resources":[{"__type":"Location:http:\/\/schemas.microsoft.com\/search\/local\/ws\/rest\/v1","bbox":[41.771497282429323,-88.031395656228241,41.779222717570676,-88.017584343771759],"name":"6109 Springside Ave, Downers Grove, IL 60516-1771","point":{"type":"Point","coordinates":[41.77536,-88.02449]},"address":{"addressLine":"6109 Springside Ave","adminDistrict":"IL","adminDistrict2":"DuPage Co.","countryRegion":"United States","formattedAddress":"6109 Springside Ave, Downers Grove, IL 60516-1771","locality":"Downers Grove","postalCode":"60516-1771"},"confidence":"High","entityType":"Address"}]}],"statusCode":200,"statusDescription":"OK","traceId":"b4881270869d407a9fbfc6b50dccf78d|BL2M002309|02.00.126.3000|BL2MSNVM001289"})
Closed Sep 13, 2011 at 3:47 PM by

comments

bcbeatty wrote Sep 13, 2011 at 1:49 AM

When I downloaded the source code and tried again. It was successful.

antiufo wrote Sep 13, 2011 at 3:46 PM

Hi,
You should remove the non-json part of code:
OK: {"authentication.....}
Wrong: GetLocationCoordinates({"authentication.....})