I would suggest using the newer REST API https://www.codenameone.com/blog/rest-api-error-handling.html
E.g.: Rest. post("https://language.googleapis.com/v1/documents:analyzeSyntax?apiKey" ). jsonContent(). body("place the JSON string of the request here"). fetchAsJsonMap(e -> { Map<String, Object> m = e.getResultData(); // process response here... }); -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/6b88b931-3e97-4355-b8b6-fe38ceaa8c71%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.