private static JSONObject parseTarget ( Shape target ) throws JSONException { JSONObject targetObject = new JSONObject ( ) ; targetObject . put ( "resourceId" , target . getResourceId ( ) . toString ( ) ) ; return targetObject ; }
Delivers the correct JSON Object for the target