It seems that this list module returns page ids as strings instead of numbers:
{"pageid":"431922","ns":2,"title":"User:Reddi/Notes","lllang":"fr","lltitle":""}
(from a request to English Wikipedia). Other list modules seem to always return numbers for pageid, e.g. imageusage:
{"pageid":47945,"ns":0,"title":"Madhya Pradesh"}