Where and when do you want the "file explorer" to show up? Meaning is this from a command in AutoCAD and is it part of a larger project? If its within a larger program loaded into AutoCAD you can use the below function to get the full path and filename of the JSON file.
Public Function SelectJsonFile() As String Implements IFileServices.SelectJsonFile
Dim JsonFileNameAndLocation As String = "Please select an JSON .json file..."
Try
Dim selectJsonFileDialog As New OpenFileDialog With {
.Title = "Select JSON File:",
.Filter = "JSON (*.json)|*.json",
.CheckFileExists = True,
.Multiselect = False,
.FilterIndex = 2,
.RestoreDirectory = True
}
If selectJsonFileDialog.ShowDialog() <> DialogResult.Cancel Then
JsonFileNameAndLocation = IO.Path.GetFullPath(selectJsonFileDialog.FileName)
End If
Catch ex As Exception
'Message omited on purpose
End Try
Return JsonFileNameAndLocation
End Function
This is VB but can easily be converted online.