I'm trying to get a filename from the server to my client and the slashes are driving me insane.
If I have a fully qualified file path that is
\\machine\share\inga.baz
and I want this to be available on a JSON object on the client
1) what format needs to come in to allow JSON.parse to generate
var file = {"path":"\\machine\share\inga.baz"};
var filepath = file.path;
//filepath = "\\machine\share\inga.baz"
with no client-side conversion of the incoming string?
2) what changes need to be done client-side to sanitize the string such that
var filepath = file.path;
actually contains a resolvable resource name?