Where was the other topic?
Is $json_string
a json string or is it an “object” as you posted.
If it’s a json string you can’t access the values in it using $json_string->category->sector
unless you decode it first.
$object = json_decode($json_string);