I have something like this...
["a","b","c"]
I got it from PHP array using json_decode(). I'm very weak in JavaScript, but I need to get array in Javascript, so I can use it with jQuery UI -> Autocomplete like this...
source: [ 'a', 'b', 'c' ]
Is it possible to do with only Javascript or you need to have some Javascript library to use JSON?
<script>var myObj = <?= encode_your_php_object_to_json(...) ?>;</script>
and what it implies. See json.org for more details. – user166390 Jan 2 '11 at 7:15