You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
Parsing the JSON response from "updateVideo" must be changed from "getString('result')" to "getJSONObject('result')" in order to comply with JSON spec
#8
Open
rfelgent opened this issue
Dec 22, 2015
· 1 comment
the code part in the class WriteApi should be changed from
Video result = null;
if(response.getString("result") != null) {
String jsonResult = response.getString("result");
result = new Video(jsonResult);
}
to
Video result = null;
if (response.has("result")
&& response.getJSONObject("result") != null) {
JSONObject jsonResult = response.getJSONObject("result");
result = new Video(jsonResult);
}
The text was updated successfully, but these errors were encountered:
rfelgent
changed the title
Parsing the JSON response from "updateVideo" must be changed from "getString('result')" to "getJSONObject('result')" in order to comply JSON spec
Parsing the JSON response from "updateVideo" must be changed from "getString('result')" to "getJSONObject('result')" in order to comply with JSON spec
Dec 22, 2015
A valid response from BrightCove after executing "updateVideo" as an example:
the code part in the class WriteApi should be changed from
to
The text was updated successfully, but these errors were encountered: