Docker Pull: ly-mssp-auth-ui Version 2.2 - Up to Date
{"status":"Pulling from dev/ly-mssp-auth-ui","id":"2.2"} {"status":"Digest: sha256:065ac928d8b06e9571ca9aab52b9a5de70c45c019765c1d576c0ac748718a4ca"} {"status":"Status: Image is up to date for 192.168.2.78:5000/dev/ly-mssp-auth-ui:2.2"}
To convert a Java8 object to a JSONArray, you can use a JSON library such as JSON-java or Gson. Here is an example using the JSON-java library:
First, you need to convert the Java object to a JSON string, then parse it into a JSONArray. For example, assuming you have a Java object called "myObject":
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
...
// Convert the Java object to a JSON string
String jsonString = new JSONObject(myObject).toString();
// Parse the JSON string as a JSONArray
JSONArray jsonArray = new JSONArray(jsonString);
Please note that "myObject" here is the Java object you want to convert.
Hope this helps!
原文地址: https://www.cveoy.top/t/topic/p8QH 著作权归作者所有。请勿转载和采集!