Created
December 1, 2025 08:10
-
-
Save Taosif7/1b99d0f9376967b51edd8b9f085d2a7b to your computer and use it in GitHub Desktop.
Sample json showing how master filters are formed using JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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