0:00 Music 0:06 Let's see what is a JSON. 0:09 The JSON is just a text. 0:12 That text can hold some value and some fields. 0:19 You can use it inside your AI platforms and for communication between the nodes. 0:27 So to see the structure of the JSON file, how it looks like, let's go to the website, name it json.org. 0:40 We can see inside this website how the JSON files or JSON objects, you can construct them and you can understand them also. 0:49 For example, here we have an object. 0:53 A JSON object, how it looks like. 0:55 Always start with this symbol here. 0:59 Then inside of it, close bracket. 1:02 We have open bracket here and close bracket here. 1:05 Between the objects, always will be between the brackets. 1:09 You can follow the line here. 1:11 You can, the object, there is nothing inside of it. 1:15 Just open and close and the object will be empty. 1:18 And you can use another values inside of it. 1:22 The object can hold, for example, a string inside of it. 1:27 And to hold a string, there is a string here, the name of the string, then the semicolon, then the value of the string, then you can close your object. 1:39 Here you can have an object starting and contain just a string and value for that string and close it. 1:47 Or can also be a multiple string inside the same object. 1:52 Like the string, then the semicolon value here, the first one k value, then... 1:58 We do this symbol here, then we add another string value, then another string value, and so on, till you close it. 2:07 You want to close it. 2:08 You want to close it. 2:08 close it. 2:09 This is how the object looks like. 2:11 And for the array also we open with the bracket, square bracket here, and can hold a value and just close it. 2:18 So that your array will hold only one value. 2:21 And the value can be another, can be a multiple 2:27 values, I will show you the value what means by value. 2:32 The value here can be another string, can be another object, can be an array, can be true or false or nil. 2:39 So this is the value. 2:42 Can hold anything for those ones. 2:45 And the array can hold many values. 2:47 And you will separate it by the separator. 2:50 And for the value, we say the value can hold a string, the value can hold a number, can be an object also, can be an array or true or false or null. 3:00 And for the string, 3:03 is just a chain of characters. 3:08 And there is a specific characters also. 3:10 If you want to use this character here or this one, reverse or solidus or backspace, or you will use like a new line or 3:25 a carriage return or a tab. 3:29 Always you have to use the reverse solidus to allow to use that symbol. 3:39 What that means, if you start your string, you can just tap here, normal regular characters and number, and you can close it, and you have here a string. 3:49 But if you have to use a symbol inside of your string, you have to... 3:53 First, do the reverse solidus, then add the symbol from those you can see here. 4:02 Then your object will read this without the reverse solidus. 4:10 And for the numbers, the element or the value of the number can just hold a number here, and that's it, or can be a minus number, like negative numbers, or can be also negative. 4:23 For example, and hold a digit from 1 to 9, and it can be a number, start with a 0, and go to the point, then hold that digit, and so on. 4:34 So this website is really useful. 4:36 for the people or the persons want to learn more about the JSON. 4:41 Why we learn JSON? 4:43 Because every node in N8 and platform is just a JSON. 4:47 And the data transfers from the node to another node is a JSON object. 4:53 HTTP request is a protocol. 4:57 For communication between client and server, between node and node, between the sender and between the receiver. 5:07 For the post request, if you want to send data to our server, if the client wants 5:14 to send that data to a server. 5:16 So here we will use a post request and follow it with a URL. 5:22 Then after the URL, we'll come the object of JSON object can hold the payload. 5:31 The payload can be any data, can be array, can be Boolean, can be a numbers or another object. 5:38 It's on data will go on from the client to the server. 5:44 So the server here, when he see a post request come to him, he will catch the data also and trigger the process after that. 5:53 For the get is used to retrieve a data from the server. 5:59 The server has a data. 6:01 So if you are the client, you will send a get request. 6:06 to the URL, then the server will reply to you with the data you want. 6:12 And for each post or get, when the client send a post request or get request to the server, the server will process this request, then also 6:25 follow back or replay back 6:28 to the client with a code, let's say 200, to just say, okay, I receive your data. 6:37 So from with this way, the client can know his data gone and and hold by the server. 6:45 And the webhooks is 6:48 like a node or element we can use in our workflows and acts as a server, as a server endpoint. 6:59 What that means, if you have a webhook in your workflow, that means you're waiting for incoming data from the client. 7:06 So the client or another node or another services on the web will send you a webhook request, will send you a data to that webhook. 7:18 When you receive this data, you can start your workflows, you can hold this data or do some processing for this data. 7:27 And also you can reply to the clients who sent the webhook. 7:32 Like, okay, I got your data and I got your request. 7:36 And you are good, so the client will know. 7:39 For example, it's very useful when we use other tools or other softwares or third parties or from agent to agent or from node to node. 7:56 And the regular example here, like the Stripe, the Stripe payment service. 8:03 If you have a payment link and you want to know if there is someone pay you or no. 8:10 So you will configure a webhook for that and link it to the Stripe service. 8:16 And you will give the Stripe service your webhook link and save it with the Stripe account, then if there is any client pay the Stripe link, you will know by 8:30 Stripe will send you a webhook to your node, to your... 8:36 URL, say to you, okay, there is a payment. 8:40 This is the amount, there is the date, and there is the from who and other details. 8:47 So you can automate, start automating things. 8:49 For example, you will do a AI automation workflow. 8:57 To let you know to start the order or you have an order. 9:01 If the client pays, you can start with the order. 9:05 So you will know directly. 9:07 It can process any other workflow or any process you want. 9:14 So this is the communication tools. 9:16 We have the post and get request. 9:17 We have webhooks and the JSON objects is the main payload used inside the post and get and webhooks. 9:28 We have webhooks and the JSON objects.
0:00 Music 0:06 Let's see what is a JSON. 0:09 The JSON is just a text. 0:12 That text can hold some value and some fields. 0:19 You can use it inside your AI platforms and for communication between the nodes. 0:27 So to see the structure of the JSON file, how it looks like, let's go to the website, name it json.org. 0:40 We can see inside this website how the JSON files or JSON objects, you can construct them and you can understand them also. 0:49 For example, here we have an object. 0:53 A JSON object, how it looks like. 0:55 Always start with this symbol here. 0:59 Then inside of it, close bracket. 1:02 We have open bracket here and close bracket here. 1:05 Between the objects, always will be between the brackets. 1:09 You can follow the line here. 1:11 You can, the object, there is nothing inside of it. 1:15 Just open and close and the object will be empty. 1:18 And you can use another values inside of it. 1:22 The object can hold, for example, a string inside of it. 1:27 And to hold a string, there is a string here, the name of the string, then the semicolon, then the value of the string, then you can close your object. 1:39 Here you can have an object starting and contain just a string and value for that string and close it. 1:47 Or can also be a multiple string inside the same object. 1:52 Like the string, then the semicolon value here, the first one k value, then... 1:58 We do this symbol here, then we add another string value, then another string value, and so on, till you close it. 2:07 You want to close it. 2:08 You want to close it. 2:08 close it. 2:09 This is how the object looks like. 2:11 And for the array also we open with the bracket, square bracket here, and can hold a value and just close it. 2:18 So that your array will hold only one value. 2:21 And the value can be another, can be a multiple 2:27 values, I will show you the value what means by value. 2:32 The value here can be another string, can be another object, can be an array, can be true or false or nil. 2:39 So this is the value. 2:42 Can hold anything for those ones. 2:45 And the array can hold many values. 2:47 And you will separate it by the separator. 2:50 And for the value, we say the value can hold a string, the value can hold a number, can be an object also, can be an array or true or false or null. 3:00 And for the string, 3:03 is just a chain of characters. 3:08 And there is a specific characters also. 3:10 If you want to use this character here or this one, reverse or solidus or backspace, or you will use like a new line or 3:25 a carriage return or a tab. 3:29 Always you have to use the reverse solidus to allow to use that symbol. 3:39 What that means, if you start your string, you can just tap here, normal regular characters and number, and you can close it, and you have here a string. 3:49 But if you have to use a symbol inside of your string, you have to... 3:53 First, do the reverse solidus, then add the symbol from those you can see here. 4:02 Then your object will read this without the reverse solidus. 4:10 And for the numbers, the element or the value of the number can just hold a number here, and that's it, or can be a minus number, like negative numbers, or can be also negative. 4:23 For example, and hold a digit from 1 to 9, and it can be a number, start with a 0, and go to the point, then hold that digit, and so on. 4:34 So this website is really useful. 4:36 for the people or the persons want to learn more about the JSON. 4:41 Why we learn JSON? 4:43 Because every node in N8 and platform is just a JSON. 4:47 And the data transfers from the node to another node is a JSON object. 4:53 HTTP request is a protocol. 4:57 For communication between client and server, between node and node, between the sender and between the receiver. 5:07 For the post request, if you want to send data to our server, if the client wants 5:14 to send that data to a server. 5:16 So here we will use a post request and follow it with a URL. 5:22 Then after the URL, we'll come the object of JSON object can hold the payload. 5:31 The payload can be any data, can be array, can be Boolean, can be a numbers or another object. 5:38 It's on data will go on from the client to the server. 5:44 So the server here, when he see a post request come to him, he will catch the data also and trigger the process after that. 5:53 For the get is used to retrieve a data from the server. 5:59 The server has a data. 6:01 So if you are the client, you will send a get request. 6:06 to the URL, then the server will reply to you with the data you want. 6:12 And for each post or get, when the client send a post request or get request to the server, the server will process this request, then also 6:25 follow back or replay back 6:28 to the client with a code, let's say 200, to just say, okay, I receive your data. 6:37 So from with this way, the client can know his data gone and and hold by the server. 6:45 And the webhooks is 6:48 like a node or element we can use in our workflows and acts as a server, as a server endpoint. 6:59 What that means, if you have a webhook in your workflow, that means you're waiting for incoming data from the client. 7:06 So the client or another node or another services on the web will send you a webhook request, will send you a data to that webhook. 7:18 When you receive this data, you can start your workflows, you can hold this data or do some processing for this data. 7:27 And also you can reply to the clients who sent the webhook. 7:32 Like, okay, I got your data and I got your request. 7:36 And you are good, so the client will know. 7:39 For example, it's very useful when we use other tools or other softwares or third parties or from agent to agent or from node to node. 7:56 And the regular example here, like the Stripe, the Stripe payment service. 8:03 If you have a payment link and you want to know if there is someone pay you or no. 8:10 So you will configure a webhook for that and link it to the Stripe service. 8:16 And you will give the Stripe service your webhook link and save it with the Stripe account, then if there is any client pay the Stripe link, you will know by 8:30 Stripe will send you a webhook to your node, to your... 8:36 URL, say to you, okay, there is a payment. 8:40 This is the amount, there is the date, and there is the from who and other details. 8:47 So you can automate, start automating things. 8:49 For example, you will do a AI automation workflow. 8:57 To let you know to start the order or you have an order. 9:01 If the client pays, you can start with the order. 9:05 So you will know directly. 9:07 It can process any other workflow or any process you want. 9:14 So this is the communication tools. 9:16 We have the post and get request. 9:17 We have webhooks and the JSON objects is the main payload used inside the post and get and webhooks. 9:28 We have webhooks and the JSON objects.