Added option to decode to associative array