HI,
I have a VPS with Static IP let's assume 8.8.8.8 and open port 4300. I had like to receive request on this port and process the JSON to make records in CSV files. I have provided details to process below. I am highlighting all my mistakes in trying to get this to work
1. Under connections , I setup a TCP/IP and create a new entry called Static , port 4300
2. I create a transformation , called JSONify
2.1 I don't need validation, deleted that
2.2 Under transformation , I select Decode
JSON array , but not clear what to do
3. I create a Writer : CSV file , define a location for the file
4. Under Event Monitor , I select Connection - Static, Under transformation Jsonify ,under parameters page to check URL TO Check
not clear what to write here?
5. Under Maintain I ensure the services are ON and ticked
6. Under Services Windows , I ensure HTTP monitor is started
I am able to send a CURL POST request on the internet, but
1. Get no success/fail as a reply back on the request
2. I have no clues how to decode the JSON below to get a csv friendly output
3. How to see all the request which have been received when sending the curl request
For sake of brevity let's assume the JSON below and I wish to process it as below
name,age,id,product,quantity
John,30,123,iPhone,1
John,30,456,MacBook,2
Code:
{
"user": {
"name": "John",
"age": 30
},
"orders": [
{
"id": "123",
"product": "iPhone",
"quantity": 1
},
{
"id": "456",
"product": "MacBook",
"quantity": 2
}
]
}