Based on the Microsoft documentation, the OPENJSON() function with the default schema returns Key/Value pair and the type of the Value. So you may use the key as the Ordinal. Here is the example:
DECLARE @json nvarchar(max) = N'
{
"arrayelem": [
{"name": "ColumnX"},
{"name": "ColG"},
{"name": "ColHIG"}
]
}
';
SELECT JSON_VALUE([Value], '$.name') AS [Name], [key] AS Ordinal
FROM OPENJSON(@json, '$.arrayelem');