Merge: lib/json: fix array serialization