Normalize kind-0 content into CommonProfileData (display_name becomes displayName; every other key is preserved).
CommonProfileData
display_name
displayName
Kind-0 JSON content.
Profile data, or null when the content is not a JSON object.
null
parseCommonProfile('{"display_name":"Alice","lud16":"alice@pay.example"}')?.displayName === 'Alice'; Copy
parseCommonProfile('{"display_name":"Alice","lud16":"alice@pay.example"}')?.displayName === 'Alice';
Normalize kind-0 content into
CommonProfileData(display_namebecomesdisplayName; every other key is preserved).