code: public JsonWriter value(Number number) throws IOException {
        Preconditions.checkArgument(inArray() || writeStack.peek() == JsonTokenType.NAME,
                                    "Expecting an array or a name, but found " + writeStack.peek());
        popIf(JsonTokenType.NAME);
        writer.value(number);
        return this;
     }
docs: Writes a number
  
  @param number the number
  @return This structured writer
  @throws IOException Something went wrong writing