Skip to content

Instantly share code, notes, and snippets.

@Timrael
Created April 29, 2014 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Timrael/11406259 to your computer and use it in GitHub Desktop.
Save Timrael/11406259 to your computer and use it in GitHub Desktop.
TRF dump example
[{
"field": "children",
"op": "EQ",
"children": {
"0": [{
"field": "infants",
"op": "EQ",
"children": {
"0": [{
"field": "trip_class",
"op": "EQ",
"children": {
"0": [{
"field": "direction",
"op": "EQ",
"children": {
"rt": [{
"field": "origin",
"op": "EQ",
"children": {
"MOW": [{
"field": "destination",
"op": "EQ",
"children": {
"LED": [{
"field": "depart_date",
"op": "EQ",
"children": {
"20140511": [{
"field": "return_date",
"op": "EQ",
"children": {
"20140519": [{
"op": "id",
"value": "1"
},
{
"field": "max_price",
"op": "LT",
"children": {
"212000": [{
"op": "id",
"value": "3"
}]
},
"sorted_keys": ["212000"]
},
{
"field": "max_stops",
"op": "LT",
"children": {
"3": [{
"field": "max_price",
"op": "LT",
"children": {
"206000": [{
"field": "max_flight_duration",
"op": "LT",
"children": {
"1200": [{
"op": "id",
"value": "5"
}]
},
"sorted_keys": ["206000"]
}]
}
}]
},
"sorted_keys": ["3"]
}]
}
}]
}
}]
}
}]
}
}]
}
}]
}
}]
}
}]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment