in reply to Formatting JSON the right way
It looks to me like your while loop is overwriting the values in your hash at every iteration. It would probably be better to construct an array of hashrefs to store the data instead and then convert that array to your JSON at the end.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting JSON the right way
by Anonymous Monk on Aug 20, 2014 at 12:26 UTC | |
by hippo (Archbishop) on Aug 20, 2014 at 12:42 UTC | |
by Anonymous Monk on Aug 20, 2014 at 13:10 UTC | |
by scorpio17 (Canon) on Aug 20, 2014 at 15:30 UTC |