javascript - How to push the returned value from this js function to a seperate JSON file? -


the following js outputs data in json format (i "believe" syntax proper json format). question - how can data automatically sent separate file on server, e.g. listings.json, each time user opens page , executes script?

fetch('http://www.jamapi.xyz', {   method: 'post',   headers: {     'accept': 'application/json',     'content-type': 'application/json'   },   body: json.stringify({     url: 'https://theskint.com/',     json_data: '{"listing": [{"elem": ".entry-content > p:nth-child(n+2)" , "value": "text"}] }'   }) }).then(function(response) {   return response.json(); });   


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -