Implemented array conversion from/to JSON.