No need to check capacity (we use json::end for that atm)