Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SmartCard.SplitValues

Split values read from smart card.

Component Version macOS Windows Linux Server iOS SDK
SmartCard 8.5 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "SmartCard.SplitValues"; Input )   More

Parameters

Parameter Description Example
Input The hex encoded input string.

Result

Returns JSON or error.

Description

Split values read from smart card.
Files on smartcard can contain key/value data.
Returns JSON with an object containing numbers as text (key) and values as text.

Sample for JSON result:

{
"128":"MILLER, JOE",
"130":"19651201",
"131":"123456789012",
"132":"\u0001"
}
Starting with version 10.0 we hex encode binary data instead of assuming it's UTF-8.

Examples

Split file data:

Set Variable [ $json ; Value: MBS("SmartCard.SplitValues"; Card::FileData) ]
If [ MBS("IsError") ]
    Set Field [ Card::JSON ; "" ]
Else
    Set Field [ Card::JSON ; MBS("JSON.Colorize"; $json) ]
End If

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 19th October 2018, last changed 6th December 2019


SmartCard.SetAttribute - SmartCard.Status