code: public void writeBoolean(OutputStream out, boolean value) throws IOException {
          writeStartArray(out);
          writeBooleanInternal(out, value);
          writeEndArray(out);
      }
docs: Encode a boolean value as JSON. An array is used to wrap the value:
  [ true | false ]
  
  @param out The stream to write JSON to
  @param value The boolean value to encode
  @throws IOException If an I/O error occurs
  @see #readBoolean(InputStream)