change the way how we use dependency in the json serializer