I am building a flower picker, and there's a submit option. Before the submit I am keeping track of the flower quantities using localStorage.

Each object representing a flower looks like this -

```
{
  flower_id: 1,
  qty: 3
}

```

Now, how can I reuse that in my angular controller? because it is stored in localStorage as a string

```
[{flower_id: 1,qty: 3}]

```

, it counts the length of the value (23) instead of the array length. How can I turn that back into a javascript object?

Thanks