fixing json_decode / json_encode mixup for option save