Skip to content

Instantly share code, notes, and snippets.

@ImoutoChan
Last active March 14, 2018 13:07
Show Gist options
  • Select an option

  • Save ImoutoChan/0c16ff191be8fe5e1ff67c9a9fc94ab1 to your computer and use it in GitHub Desktop.

Select an option

Save ImoutoChan/0c16ff191be8fe5e1ff67c9a9fc94ab1 to your computer and use it in GitHub Desktop.

Revisions

  1. ImoutoChan revised this gist Mar 14, 2018. 1 changed file with 33 additions and 33 deletions.
    66 changes: 33 additions & 33 deletions sample.json
    Original file line number Diff line number Diff line change
    @@ -1,35 +1,35 @@
    {
    "conditionGroup": {
    "operator": "or",
    "conditionGroups": [
    {
    "operator": "and",
    "conditionGroups": null,
    "conditions":[
    {
    "operator": "lower",
    "propertyName": "Value3",
    "value": "5"
    },
    {
    "operator": "equal",
    "propertyName": "Value4",
    "value": "25"
    }
    ]
    }
    ],
    "conditions": [
    {
    "operator": "lower",
    "propertyName": "Value",
    "value": "5"
    },
    {
    "operator": "equal",
    "propertyName": "Value2",
    "value": "25"
    }
    ]
    }
    "conditionGroup": {
    "operator": "or",
    "conditionGroups": [
    {
    "operator": "and",
    "conditionGroups": null,
    "conditions":[
    {
    "operator": "lower",
    "propertyName": "Value3",
    "value": "5"
    },
    {
    "operator": "equal",
    "propertyName": "Value4",
    "value": "25"
    }
    ]
    }
    ],
    "conditions": [
    {
    "operator": "lower",
    "propertyName": "Value",
    "value": "5"
    },
    {
    "operator": "equal",
    "propertyName": "Value2",
    "value": "25"
    }
    ]
    }
    }
  2. ImoutoChan revised this gist Mar 14, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions sample.json
    Original file line number Diff line number Diff line change
    @@ -7,12 +7,12 @@
    "conditionGroups": null,
    "conditions":[
    {
    "operator": "lower"
    "operator": "lower",
    "propertyName": "Value3",
    "value": "5"
    },
    {
    "operator": "equal"
    "operator": "equal",
    "propertyName": "Value4",
    "value": "25"
    }
    @@ -21,12 +21,12 @@
    ],
    "conditions": [
    {
    "operator": "lower"
    "operator": "lower",
    "propertyName": "Value",
    "value": "5"
    },
    {
    "operator": "equal"
    "operator": "equal",
    "propertyName": "Value2",
    "value": "25"
    }
  3. ImoutoChan revised this gist Mar 14, 2018. 1 changed file with 19 additions and 19 deletions.
    38 changes: 19 additions & 19 deletions sample.json
    Original file line number Diff line number Diff line change
    @@ -1,34 +1,34 @@
    {
    conditionGroup: {
    operator: "or",
    conditionGroups: [
    "conditionGroup": {
    "operator": "or",
    "conditionGroups": [
    {
    operator: "and",
    conditionGroups: null,
    conditions:[
    "operator": "and",
    "conditionGroups": null,
    "conditions":[
    {
    operator: "lower",
    propertyName: "Value3",
    value: "5"
    "operator": "lower"
    "propertyName": "Value3",
    "value": "5"
    },
    {
    operator: "equal",
    propertyName: "Value4",
    value: "25"
    "operator": "equal"
    "propertyName": "Value4",
    "value": "25"
    }
    ]
    }
    ],
    conditions: [
    "conditions": [
    {
    operator: "lower",
    propertyName: "Value",
    value: "5"
    "operator": "lower"
    "propertyName": "Value",
    "value": "5"
    },
    {
    operator: "equal",
    propertyName: "Value2",
    value: "25"
    "operator": "equal"
    "propertyName": "Value2",
    "value": "25"
    }
    ]
    }
  4. ImoutoChan created this gist Mar 14, 2018.
    35 changes: 35 additions & 0 deletions sample.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    {
    conditionGroup: {
    operator: "or",
    conditionGroups: [
    {
    operator: "and",
    conditionGroups: null,
    conditions:[
    {
    operator: "lower",
    propertyName: "Value3",
    value: "5"
    },
    {
    operator: "equal",
    propertyName: "Value4",
    value: "25"
    }
    ]
    }
    ],
    conditions: [
    {
    operator: "lower",
    propertyName: "Value",
    value: "5"
    },
    {
    operator: "equal",
    propertyName: "Value2",
    value: "25"
    }
    ]
    }
    }