Treat a message identifier as text if you need an exact match. JSON distinguishes strings from numbers. Number conversions can also lose precision in downstream tools. An identifier can be useful without taking part in any arithmetic.
Test with two invented IDs
Compare 000072 and 9007199254740993 in a local test row. The leading zeros and final digit matter if another record references the full string. In a spreadsheet import, choose a text type for identifiers. If you write a JSON version, preserve the identifiers as quoted strings when the destination schema permits.

Verify the saved copy
Open the resulting file in a text editor and compare the literal IDs with the source before accepting it. If a digit or zero changed, re-import the untouched original with the appropriate column type. Keep private identifiers in a local copy and avoid pasting an export into a public converter.