<?php

$jsonString = '{
    "ListaAtributos": {
        "Atributos": {
            "attributecs": [
                {"AttributeName": "CONDICIÓN", "AttributeValue": "NUEVO"},
                {"AttributeName": "COLOR", "AttributeValue": "NEGRO"},
                {"AttributeName": "MARCA", "AttributeValue": "LENOVO"},
                {"AttributeName": "MODELO", "AttributeValue": "M70q"},
                {"AttributeName": "LÍNEA DE PRODUCTOS", "AttributeValue": "PCS"},
                {"AttributeName": "MODELO ALFANUMERICO", "AttributeValue": "M70q"},
                {"AttributeName": "CON WI-FI", "AttributeValue": "SI"},
                {"AttributeName": "FUENTE DEL PRODUCTO", "AttributeValue": "65 Watts"},
                {"AttributeName": "ES KIT", "AttributeValue": "NO"},
                {"AttributeName": "CAMARA WEB", "AttributeValue": "NO"},
                {"AttributeName": "CANTIDAD DE NÚCLEOS", "AttributeValue": "6"},
                {"AttributeName": "VERSIÓN DEL SISTEMA OPERATIVO", "AttributeValue": "Windows 10Pro 64 bits"},
                {"AttributeName": "VELOCIDAD PROCESADOR", "AttributeValue": "2.00"},
                {"AttributeName": "UNIDADES DE DIMENSIÓN", "AttributeValue": "MM"},
                {"AttributeName": "UNIDAD DE VELOCIDAD DEL PROCESADOR", "AttributeValue": "GHz"},
                {"AttributeName": "CAPACIDAD DE DISCO DURO GB", "AttributeValue": "0.00"},
                {"AttributeName": "CAPACIDAD DE DISCO DURO TB", "AttributeValue": "1.00"},
                {"AttributeName": "TIPOS DE TARJETA DE MEMORIA", "AttributeValue": "DDR4 3200MHz"},
                {"AttributeName": "CAPACIDAD DEL SSD GB", "AttributeValue": "0.00"},
                {"AttributeName": "CAPACIDAD DEL SSD TB", "AttributeValue": "0.00"},
                {"AttributeName": "TIPO DE PANTALLA", "AttributeValue": "N/A"},
                {"AttributeName": "TIPO DE MEMORIA DE VIDEO", "AttributeValue": "Integrada Intel UHD Graphics 630"},
                {"AttributeName": "CON BLUETOOTH", "AttributeValue": "SI"},
                {"AttributeName": "CON HDMI", "AttributeValue": "SI"},
                {"AttributeName": "CON MICRÓFONO", "AttributeValue": "NO"},
                {"AttributeName": "CON PANTALLA TÁCTIL", "AttributeValue": "NO"},
                {"AttributeName": "CON PUERTO ETHERNET", "AttributeValue": "SI"},
                {"AttributeName": "CON PUERTO USB", "AttributeValue": "SI"},
                {"AttributeName": "CON SALIDA PARA AURICULARES", "AttributeValue": "SI"},
                {"AttributeName": "TIPO DE ALMACENAMIENTO DE DATOS", "AttributeValue": "HDD"},
                {"AttributeName": "TAMAÑO DE PANTALLA", "AttributeValue": "0.00"},
                {"AttributeName": "SERIE", "AttributeValue": "M70q"},
                {"AttributeName": "ENTRADA PARA MICROFONO", "AttributeValue": "SI"},
                {"AttributeName": "MEMORIA RAM", "AttributeValue": "8GB"},
                {"AttributeName": "MÁXIMA CAPACIDAD DE RAM", "AttributeValue": "64GB"},
                {"AttributeName": "SISTEMA OPERATIVO", "AttributeValue": "Windows 10Pro"},
                {"AttributeName": "RESOLUCIÓN DE PANTALLA", "AttributeValue": "N/A"},
                {"AttributeName": "RESOLUCIÓN DE LA CÁMARA WEB", "AttributeValue": "0"},
                {"AttributeName": "PROCESADOR", "AttributeValue": "Intel Core i5-10400T"},
                {"AttributeName": "UNIDAD DE PESO", "AttributeValue": "KG"},
                {"AttributeName": "GPU", "AttributeValue": "SI"},
                {"AttributeName": "SKU", "AttributeValue": "11DUS2PG00"},
                {"AttributeName": "NOMBRE O DESCRIPCION", "AttributeValue": "Pc Lenovo Thinkcentre M70Q Tiny Intel Core i5-10400T 8GB 1TB W10 Pro"},
                {"AttributeName": "IMAGEN", "AttributeValue": "SI"},
                {"AttributeName": "EAN", "AttributeValue": "195477320888"},
                {"AttributeName": "SKU SIMPLE", "AttributeValue": "11DUS2PG00"},
                {"AttributeName": "PRECIO", "AttributeValue": "N/A"},
                {"AttributeName": "STOCK", "AttributeValue": "N/A"},
                {"AttributeName": "MÉTODO DE ENVÍO", "AttributeValue": "N/A"},
                {"AttributeName": "ANCHURA DEL PAQUETE DE ENVÍO", "AttributeValue": "150"},
                {"AttributeName": "ALTURA DEL PAQUETE DE ENVÍO", "AttributeValue": "280"},
                {"AttributeName": "LARGO DEL PAQUETE DE ENVÍO", "AttributeValue": "500"},
                {"AttributeName": "PESO DEL PAQUETE", "AttributeValue": "4"},
                {"AttributeName": "CANAL EXCLUSIVO", "AttributeValue": "N/A"},
                {"AttributeName": "PRODUCTO NUEVO", "AttributeValue": "SI"},
                {"AttributeName": "NOMBRE", "AttributeValue": "Pc Lenovo Thinkcentre M70Q Tiny Intel Core i5-10400T 8GB 1TB W10 Pro"},
                {"AttributeName": "CARACTERISTICAS", "AttributeValue": "La ThinkCentre M70q, un potente dispositivo de nivel empresarial de 1 litro con rendimiento y productividad convencionales, logra el equilibrio perfecto entre rendimiento y tamaño pequeño. Su potente procesador hasta Intel Core i9 de 10ma generación (esta configuración es la máxima posible y no está disponible en todos los modelos) y la memoria DDR4 rápida están listos para empezar a tachar elementos de tu lista de tareas pendientes. Además, cuenta con opciones de almacenamiento configurables. Práctica y configurable. La M70q cuenta con encendido remoto opcional y admite hasta tres monitores independientes (no incluidos). Gracias a los cuatro puertos USB (uno con capacidad de carga rápida) y a una gran cantidad de puertos y opciones, puedes conectar muchos otros periféricos. Sus ranuras y complementos te ayudan a configurarla a tu gusto; mientras que el acceso sin herramientas opcional contribuye a la expansión y el crecimiento de tu negocio."}
            ]
        }
    }
}';

$atributos = json_decode($jsonString, true);

if (json_last_error() === JSON_ERROR_NONE) {
    echo "JSON decodificado exitosamente.\n";
    print_r($atributos);
} else {
    echo "Error al decodificar JSON: " . json_last_error_msg() . "\n";
}
