Created serializer which will return the values.