use \stdClass as json_decode