code: public static String serialise(Object object) {
          Gson gson = getBuilder().create();
          return gson.toJson(object);
      }
docs: Serialises the given object to Json.
  
  @param object The object be serialised.
  @return The Json as a String.