code: public static JSONArray formsRootFromSectionsMap( HashMap<String, JSONObject> sectionsMap ) {
          JSONArray rootArray = new JSONArray();
          Collection<JSONObject> objects = sectionsMap.values();
          for( JSONObject jsonObject : objects ) {
              rootArray.put(jsonObject);
          }
          return rootArray;
      }
docs: Create the forms root json object from the map of sections json objects.
  
  @param sectionsMap the json sections map.
  @return the root object that can be dumped to file through the toString method.