You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to select multiple fields from an object in one query.
Current behavior
Currently, to select multiple fields from an object, the user needs to run multiple queries or process the result of a more general query. For example, given the following JSON:
To get the name and color of each item, the user would need to run separate queries for each field: $.data.items[*].data.name and $.data.items[*].data.color.
Desired behavior
The proposal is to introduce a field picking syntax to select multiple fields from an object in one query. For instance, using the following syntax: $.data.items[*].data.{name, color}. With this, the desired output would be:
This would greatly simplify the process of extracting specific fields from JSON data.
Alternatives considered
An alternative could be to continue using multiple queries or to use a more general query and then process the result. However, this can become cumbersome when dealing with large JSON objects or when needing to extract multiple fields.
The text was updated successfully, but these errors were encountered:
Motivation
Ability to select multiple fields from an object in one query.
Current behavior
Currently, to select multiple fields from an object, the user needs to run multiple queries or process the result of a more general query. For example, given the following JSON:
To get the name and color of each item, the user would need to run separate queries for each field:
$.data.items[*].data.name
and$.data.items[*].data.color
.Desired behavior
The proposal is to introduce a field picking syntax to select multiple fields from an object in one query. For instance, using the following syntax:
$.data.items[*].data.{name, color}
. With this, the desired output would be:This would greatly simplify the process of extracting specific fields from JSON data.
Alternatives considered
An alternative could be to continue using multiple queries or to use a more general query and then process the result. However, this can become cumbersome when dealing with large JSON objects or when needing to extract multiple fields.
The text was updated successfully, but these errors were encountered: