added call toJSON instead of serialize because visibility plugin calls the former
added call toJSON instead of serialize because visibility plugin calls the former

zoitravel/oh-my-jsonapi,jamesdixon/oh-my-jsonapi,scoutforpets/jsonapi-mapper