Skip to content

Commit ae5b38f

Browse files
committed
[fix] new json
1 parent 0e0ee9b commit ae5b38f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ Converts JSON config to SQL Query
77
{
88
"glue": "and",
99
"rules": [{
10-
"field":"age",
11-
"condition":{
12-
"type": "less",
13-
"filter": 42
14-
}
10+
"field": "age",
11+
"filter": "less",
12+
"value": 42
1513
},{
16-
"field":"region",
14+
"field": "region",
1715
"includes": [1,2,6]
1816
}]
1917
}
@@ -63,10 +61,8 @@ For those operations, both start and end values can be provided
6361
```json
6462
{
6563
"field":"age",
66-
"condition":{
67-
"type": "between",
68-
"filter": { "start": 10, "end": 99 }
69-
}
64+
"filter": "between",
65+
"value": { "start": 10, "end": 99 }
7066
}
7167
```
7268

0 commit comments

Comments
 (0)