Although your question is not so clear but as your question Heading implies you want to convert your javascript array (users) to json.So I give you a solution.Happy coding. :)
<script type="text/javascript">
function JavascriptArrayToJSON() {
var users = [{
name: 'Lindsay Made',
username: 'LindsayM',
image: 'http://placekitten.com/25/25'
}, {
name: 'Rob Dyrdek',
username: 'robdyrdek',
image: 'http://placekitten.com/25/24'
}, {
name: 'Rick Bahner',
username: 'RickyBahner',
image: 'http://placekitten.com/25/23'
}, {
name: 'Jacob Kelley',
username: 'jakiestfu',
image: 'http://placekitten.com/25/22'
}, {
name: 'John Doe',
username: 'HackMurphy',
image: 'http://placekitten.com/25/21'
}, {
name: 'Charlie Edmiston',
username: 'charlie',
image: 'http://placekitten.com/25/20'
}, {
name: 'Andrea Montoya',
username: 'andream',
image: 'http://placekitten.com/24/20'
}, {
name: 'Jenna Talbert',
username: 'calisunshine',
image: 'http://placekitten.com/23/20'
}, {
name: 'Street League',
username: 'streetleague',
image: 'http://placekitten.com/22/20'
}, {
name: 'Loud Mouth Burrito',
username: 'Loudmouthfoods',
image: 'http://placekitten.com/21/20'
}]
var jsonResult;
var string_json;
string_json =JSON.stringify(users);
jsonResult = JSON.parse(string_json);
}
</script>