# Empty value sparse fieldset

**URL:** <https://discuss.jsonapi.org/t/empty-value-sparse-fieldset/2111>\
**Category:** Uncategorized\
**Created:** [December 29, 2020, 11:03am UTC](https://discuss.jsonapi.org/t/empty-value-sparse-fieldset/2111 "2020-12-29T11:03:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMQuentic](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/jmquentic/32/720_2.png) [@JMQuentic](https://discuss.jsonapi.org/u/JMQuentic)\
**Post date:** [December 29, 2020, 11:03am UTC](https://discuss.jsonapi.org/t/empty-value-sparse-fieldset/2111/1 "2020-12-29T11:03:24Z")

</div>

Hi I have a short question about sparse fieldsets.

The specification says:

> Sparse Fieldsets
> 
> A client **MAY** request that an endpoint return only specific [fields](https://jsonapi.org/format/#document-resource-object-fields) in the response on a per-type basis by including a `fields[TYPE]` parameter.
> 
> The value of the `fields` parameter **MUST** be a comma-separated (U+002C COMMA, “,”) list that refers to the name(s) of the fields to be returned. An empty value indicates that no fields should be returned.

What does empty value in this case mean? Double Quotes?

> articles/?fields[article]=“”

or

> articles/?fields[article]=

Is this even allowed?

For any help I’m very thankful!

---

<div class="post-metadata">

**Author:** ![fdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/fdrake/32/654_2.png) [@fdrake](https://discuss.jsonapi.org/u/fdrake)\
**Post date:** [December 29, 2020, 5:02pm UTC](https://discuss.jsonapi.org/t/empty-value-sparse-fieldset/2111/2 "2020-12-29T17:02:17Z")

</div>

It means the later; yes, this is allowed.

---

<div class="post-metadata">

**Author:** ![jelhan](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/jelhan/32/822_2.png) [@jelhan](https://discuss.jsonapi.org/u/jelhan)\
**Post date:** [January 10, 2021, 10:41am UTC](https://discuss.jsonapi.org/t/empty-value-sparse-fieldset/2111/3 "2021-01-10T10:41:46Z")

</div>

I created a pull request to clarify that one in the specification: [clarify meaning of empty include query param by jelhan · Pull Request #1532 · json-api/json-api · GitHub](https://github.com/json-api/json-api/pull/1532)
