Support of un-associative arrays read/write

Not very optimized, but I finally got it working.
My previous solution malformed output JSON code. This does not.