It looks like you're new here. If you want to get involved, click one of these buttons!
String jsonString = null;
try
{
JSONObject object = new JSONObject();
object.put("a", "mode");
JSONArray vArray = new JSONArray();
vArray.put("full");
JSONArray instrumentArray = new JSONArray();
instrumentArray.put(instrumentToken);
vArray.put(instrumentArray);
object.put("v", vArray);
jsonString = object.toString();
}
catch (JSONException e)
{
e.printStackTrace();
}