R rboeck Well-Known Member Licensed User Longtime User Sep 9, 2017 #1 I have found an interesting example at stack overflow: https://stackoverflow.com/questions/45937616/using-deepl-api-to-translate-text Now i wanted to try it with b4a and i think it partialy works, i get Success in sub JobDone, but the message is: {"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error"},"id":null} So it looks, that my Json string is not fully correct. There are examples to try in python, php and javascript here i can try in javascript with runkit: https://npm.runkit.com/node-deepl/index.js?t=1504960212256 But i cant find why it doesnt work in B4A! Attachments Translate.zip Translate.zip 7 KB · Views: 480
I have found an interesting example at stack overflow: https://stackoverflow.com/questions/45937616/using-deepl-api-to-translate-text Now i wanted to try it with b4a and i think it partialy works, i get Success in sub JobDone, but the message is: {"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error"},"id":null} So it looks, that my Json string is not fully correct. There are examples to try in python, php and javascript here i can try in javascript with runkit: https://npm.runkit.com/node-deepl/index.js?t=1504960212256 But i cant find why it doesnt work in B4A!
BillMeyer Well-Known Member Licensed User Longtime User Sep 9, 2017 #2 Try using this tool to get the correct parser code: http://basic4ppc.com:51042/json/index.html and take it from there. Upvote 0
Try using this tool to get the correct parser code: http://basic4ppc.com:51042/json/index.html and take it from there.
R rboeck Well-Known Member Licensed User Longtime User Sep 9, 2017 #3 Solved! I found the problem with help from this page: https://jsonformatter.curiousconcept.com/ The problem was the single ' instead of double quotes: ". I beleived, that both forms are able. Upvote 0
Solved! I found the problem with help from this page: https://jsonformatter.curiousconcept.com/ The problem was the single ' instead of double quotes: ". I beleived, that both forms are able.
eps Expert Licensed User Longtime User Sep 9, 2017 #4 single and double quotes mean different things in POST requests Upvote 0