code: public void writeInvocation(OutputStream out, Invocation value) throws IOException {
          writeStartObject(out);
          writePOJOArrayField(out, OM_PARAMS, value.params);
          writeStringArrayField(out, OM_SIGNATURE, value.signature);
          writeEndObject(out);
      }
docs: Encode an Invocation instance as JSON:
  {
  "params" : [ POJO* ],
  "signature" : [ String* ]
  }
  
  @param out The stream to write JSON to
  @param value The Invocation instance to encode. Can't be null.
  @throws IOException If an I/O error occurs
  @see #readInvocation(InputStream)