arduino-libraries / Arduino_JSON

Official JSON Library for Arduino
GNU Lesser General Public License v2.1
154 stars 60 forks source link

Missing documentation re: how to declare JSON entry to null #50

Open Zhu-jiatong opened 1 year ago

Zhu-jiatong commented 1 year ago

The user may need to set a null value:

{
  "foo": null
}

But there is no formal documentation for the library and the examples don't demonstrate how to do it:

JSONVar json;
json["foo"] = null;
Zhu-jiatong commented 1 year ago

does nullptr work?