-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deserialize JSON output #93
Comments
JSonPredictData result = (JSonPredictData)JsonConvert.DeserializeObject(JsonString, typeof(JSonPredictData)); The result always return null. |
If I understand correctly, dd works fine, and there's an issue with your client code ? If so, you may get more attention on a .Net forum or on stackoverflow... |
hi,@beniz,I would like to share the code, pull request it in about 2days |
hi @anguoyang any difficulties with a C# client ? Just wondering if I should rename / refocus this ticket on a C# client to the dd API ? |
hi @beniz , Sorry for the late, I have just commit the source code and send the pull request, please check it, thanks a lot. |
hi @anguoyang thanks, I guess this is the code here: anguoyang@3839d39 You'd need to PR it to fit into the dd repository, or maybe easier, to make an external repository of it (e.g. deepdetect-csharp-client) and then we can review it together, test it etc... As a first remark, your code appears to include possible binary files such as |
HI, @beniz , I have deleted the binary files and PR it into ./clients/csharp. |
Hi, all,
I am using C# to deserialize the json output from dede server, but always return "null", I defined the Json object as follow:
and using NewtonSoft to deserialize it:
JSonPredictData result = (JSonPredictData)JsonConvert.DeserializeObject(JsonString, typeof(JSonPredictData));
Here, the JsonSting is:
{"status":{"code":200,"msg":"OK"},"head":{"method":"/predict","time":33061.0,"se
rvice":"imageserv"},"body":{"predictions":{"uri":"http://www.deepdetect.com/img/
ambulance.jpg","classes":[{"prob":0.9928520321846008,"cat":"n02701002 ambulance"
},{"prob":0.0069321757182478909,"cat":"n03977966 police van, police wagon, paddy
wagon, patrol wagon, wagon, black Maria"},{"last":true,"prob":0.000069531641202
04747,"cat":"n03769881 minibus"}]}}}
What is wrong with my class definition? thanks.
The text was updated successfully, but these errors were encountered: