JSONPUTARRAYEND(p,n) writes a closing bracket ] to the buffer if the number of available bytes n is greater than zero. The function returns a size_t 1 value equal to 1.
>>-JSONPUTARRAYEND(p,n)----------------------------------------><