Skip to content

Instantly share code, notes, and snippets.

@Taosif7
Created December 1, 2025 08:10
Show Gist options
  • Select an option

  • Save Taosif7/1b99d0f9376967b51edd8b9f085d2a7b to your computer and use it in GitHub Desktop.

Select an option

Save Taosif7/1b99d0f9376967b51edd8b9f085d2a7b to your computer and use it in GitHub Desktop.
Sample json showing how master filters are formed using JSON
{
"sortInfo": {
"sortOptions": [
{
"id": "PRICE_LOW_TO_HIGH",
"isApplied": false,
"presentation": {
"title": "Price: Low to High"
}
}
]
},
"selectionFilters": {
"filters": [
{
"id": "AMENITIES",
"filterGroup": "SELECTION",
"presentation": {
"title": "Amenities",
"selectionShapeType": "BUTTON_ROUND"
},
"selectionOptions": {
"selectionType": "MULTI",
"filterOptions": [
{ "id": "wifi", "label": "Wi-Fi", "isApplied": true },
{ "id": "pool", "label": "Pool", "isApplied": false }
]
},
"dividerStyle": "NORMAL"
},
{
"id": "PRICE_RANGE",
"filterGroup": "SLIDER",
"presentation": {
"title": "Price Range"
},
"sliderOption": {
"minSelectedValue": 1000,
"maxSelectedValue": 5000
}
},
{
"id": "FREE_CANCELLATION",
"filterGroup": "TOGGLE",
"presentation": {
"title": "Free Cancellation"
},
"toggleOption": {
"isApplied": false
}
}
],
"quickFilters": [
{
"id": "QF_WIFI",
"filterId": "AMENITIES",
"label": "Wi-Fi",
"presentation": {
"title": "Wi-Fi"
},
"count": 120,
"isSelectable": true,
"showCount": true,
"shapeType": "SQUARE"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment