/**
  * Deserializa el bean en formato JSON
  *
  * @param json objeto que contiene los datos del bean en formato JSON
  * @throws es.tid.serial.json.JSONException Cuando se produce un error en la deserialización del
  *     objeto JSON
  */
 public void fromJSON(JSONObject json) throws JSONException {
   JSONArray jArray;
   JSONArray jObjectArray;
   jObjectArray = json.getJSONArray("subproperties");
   this.clearSubproperties();
   for (int i = 0; i < jObjectArray.length(); i++) {
     JSONObject jObj_i = jObjectArray.getJSONObject(i);
     org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement tmp =
         new org.qualipso.advdoc.ws.client.metadata.beans.ResourceElement();
     tmp.fromJSON(jObj_i);
     this.addSubproperties(tmp);
   }
 }