Example: you want to write {"p1":[0, 1]}, but instead you get {"p1":[]}.

This is because the StaticJsonBuffer too small.

Solution: Increase the size of the StaticJsonBuffer or switch to a DynamicJsonBuffer.

The ArduinoJson Assistant can compute the size for you.

See also: