If I have an array like 

```
price=["1@1000", "1000@2000"]

```

how to convert it into JSON so that it can be send into ajax call of jQuery

```
$.ajax({
    type: 'POST',
    url: '',
    data: {
        'price': price
    },
    dataType: 'JSON',
    success: function(data) {
        console.log("success");
        console.log(data);
        var products = data.products;
        console.log(products);
    },
});

```