mapS4SlotsToJSONProperties function

Map S4 slots to JSON properties.