like Corion said, add it to $tmp
Then it will be converted to json just fine.
Edit: Now im not paying enough attention, The hash is inside an array at $tmp->[0] See Re^3: Append JSON (from hashref)
In reply to Re^3: Append JSON (from hashref)
by huck
in thread Append JSON (from hashref)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |