<?php
$str = '{"online": ["false"],"category": ["woman"],"subcategory": ["hats"],"id_product": ["KD45"],"color": ["Pink"]}';
$arr = json_decode($str, 1);
echo $arr['category'][0] . PHP_EOL; // woman
echo $arr['id_product'][0]; // KD45
