Convert NotesJSONElement.Type value to String


Function convertJsonElemTypeToString(typeNum As Integer)
	Select Case typeNum
		Case 1:
			convertJsonElemTypeToString = "NotesJSONObject"
		Case 2:
			convertJsonElemTypeToString = "NotesJSONArray"
		Case 3:
			convertJsonElemTypeToString =  "JSON String"
		Case 4:
			convertJsonElemTypeToString =  "JSON Number"
		Case 5:
			convertJsonElemTypeToString = "JSON boolean"
		Case 64:
			convertJsonElemTypeToString = "Empty"
	End Select
End Function
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...