Answer the question
In order to leave comments, you need to log in
How to process and store data received via JSON?
Hello toster!
I started to master node.js, but not for the sake of “entering IT”, but for myself. Now I'm doing a little "Hello, world!" a project based on the API of a very popular MMO game to explore the power of node.js and json. And I ran into a problem, the answer to which is the experience gained, and not reading the documentation and "Google coding" (which is what I actually do).
The essence of the project: there is an API, when I request it, I get the following response from the server in json:
{
"files": [{
"url": "http://auction-api-eu.worldofwarcraft.com/auction-data/ef92b9868d1316c1066e9fb5e6d979a0/auctions.json",
"lastModified": 1485460486000
}]
}
{
"realms": [
{"name":"Outland","slug":"outland"}],
"auctions": [
{"auc":1270238130,"item":82800,"owner":"Tapicka","ownerRealm":"Outland","bid":79999999,"buyout":79999999,"quantity":1,"timeLeft":"VERY_LONG","rand":0,"seed":577282176,"context":0,"modifiers":[{"type":3,"value":1333},{"type":4,"value":50331667},{"type":5,"value":1}],"petSpeciesId":1333,"petBreedId":19,"petLevel":1,"petQualityId":3}
Answer the question
In order to leave comments, you need to log in
It can be stored in Redis, before entering into the database, you need to pass through the handler, and based on its results, do certain actions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question