unwanted \ character
<p>php code: </p>

<pre><code>&lt;?php 
echo json_encode(glob("photos-".$_GET["folder"].'/*.jpg'));
?&gt;
</code></pre>

<p>it return : </p>

<pre><code>["photos-animaux\/ani-01.jpg","photos-animaux\/ani-02.jpg","photos-animaux\/ani-02b.jpg","photos-animaux\/ani-03.jpg","photos-animaux\/ani-04.jpg","photos-animaux\/ani-05.jpg","photos-animaux\/ani-06.jpg","photos-animaux\/ani-07.jpg","photos-animaux\/ani-08.jpg","photos-animaux\/ani-09.jpg","photos-animaux\/ani-10.jpg","photos-animaux\/ani-11.jpg","photos-animaux\/ani-12.jpg","photos-animaux\/ani-13.jpg","photos-animaux\/ani-14.jpg"]
</code></pre>

<p>Which is ALMOST perfect, except for the \ character... Where did it come from?</p>

<p>Here is the jquery code that calls it:</p>

<pre><code>$.get(  'photolister.php',
                    {'folder' : $(this).attr('href')},
                    function(data){startSlideshow(data);console.log(data);}
                );
</code></pre>
