-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.js
49 lines (41 loc) · 804 Bytes
/
data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//JavaScript Object Notation
//String, Number, Array, Object
var person = {
name: "Venkat",
exp: 18,
skills: ["Frontend", "Backend"],
address: {
city: "bangalore",
geo: {
lat: "",
lan:""
}
}
}
console.log(person.name)
console.log(
person.address.geo
)
//js object to json (stringified)
JSON.stringify(person)
//DATA --> DSL -> JSON
//POST /ftq_accounts/_search
var x = {
"query": {
"intervals": {
"address": {
"match": {
"query":"171 Avenue",
"max_gaps": 10,
"filter": {
"not_containing": {
"match": {
"query": "salty"
}
}
}
}
}
}
}
}