Result of on type "json-result", but target is "Profile"

Jan 31, 2011 at 6:18 AM

Its hard to put a good title for this whilte making it interesting.

Here is the issue.

The returned json is

{"json-result":{"username":"shadowspear","userid":"75928","fullname":"Mateus de Carvalho","company_name":"Carvalho Informatica LTDA","type_of_work":null,"currency":"1","picture_url":[],"addressline1":"Rua da Consolação, 328 Apto 616","addressline2":"","city":"São Paulo","state":"","country":"Brazil","postalcode":"01302-902","phone":"05511 83835028","fax":"","notificationformat":"text\/html","emailnotificationstatus":0,"receivenewsstatus":"1","bidwonnotificationstatus":false,"bidplacednotificationstatus":false,"newprivatemessagestatus":false,"profiletext":"MCAD for .NET\r\nMCP SQL SERVER 2000\/ASP.NET\/Web Services and Components","vision":"Deliver a perfect job with time and competitive price.","keywords":"C  ,WebDesign,Programing,Windows,Microsoft","hourlyrate":"50","skills":"","lostSellerProjectList":[{"id":"29435","name":"Data Entry Data Grid in C#","url":"http:\/\/www.freelancer.com\/projects\/29435.html"},{"id":"25384","name":"craigslist.org","url":"http:\/\/www.freelancer.com\/projects\/25384.html"},{"id":"22648","name":"Autotrader clone functionality...","url":"http:\/\/www.freelancer.com\/projects\/22648.html"},{"id":"23839","name":"E-Mail List Creation","url":"http:\/\/www.freelancer.com\/projects\/23839.html"},{"id":"23449","name":"Track my order feature","url":"http:\/\/www.freelancer.com\/projects\/23449.html"},{"id":"23288","name":"Website specific smart email spider\/extractor","url":"http:\/\/www.freelancer.com\/projects\/23288.html"},{"id":"21289","name":"Affiliate Center Lead Upload from .csv","url":"http:\/\/www.freelancer.com\/projects\/21289.html"}],"qualificationcsv":"PHP,Javascript,XML,Flash,.NET,Website Design,Windows Desktop,Logo Design,Data Processing,Data Entry"}}

So I am trying to deserialize this to a type I call Profile but it complaing that it cannot convert "json-result" to "Profile" if a do anything to get rid of the "json-result" part then I get a JsonReaderException saying "Error parsing NaN value. Line 1, position 2.".

Does anyone have any idea what happening here.