json: set string len for NULL strings to 0