Skip to content

ArduinoJson::JsonArray has no member named 'clear' #1597

@bhcuong2008

Description

@bhcuong2008

Hi,

I create a JsonArray as below, then got error 'ArduinoJson::JsonArray {aka class ArduinoJson6180_D1::ArrayRef}' has no member named 'clear'

My target platform: ESP32 Arduino 1.06, IDF 3.3.5
ArduinoJson 6.18

StaticJsonDocument<512> test;
JsonArray ja = test.as<JsonArray>();
ja.clear();

I dont know why because the document says it has method clear.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv6ArduinoJson 6

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions