Question: I want to grab some data from lucene index file. But I can't read it.

I try to use `Luke`, but it always crashes with `java.lang.OutOfMemoryError: Java heap space`. Note `-Xmx` can't help me. I try -Xmx512, -Xmx1024 and even -Xmx2048.

I try to use `Solr` also, but gets `java.lang.OutOfMemoryError: Java heap space` too.

Any ideas how I can extract some data from Lucene?

P. S. I use lucene 2.3.0. My index file is 1.8 Gb size.

Answer: 
IN your array declaration 

```
var count_review= new Array() 

```

instead of this use

```
var count_review={}; 

```

It Works!
I came accros same problem because my json array key-value was string-string. It is not possible to change the structure. So i solve my problem by converting my json array to
json object and it solves my problem completely. Json object successfully stringified.

To Change array to object :

```
var *your_object* = Object.assign({}, *your_array*);

```