You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i modified the scipt in line 56 and added
$json = $json['response'];
I got a csv done this way pos,keyword,tags,delete_date,date,trend_date Array,"biondo scuro",Array,0,20180608,20180601 Array,"tinte per capelli colori",Array,0,20180608,20180601 Array,"tinta cioccolato",Array,0,20180608,20180601 Array,"brufoli sul mento",Array,0,20180608,20180601 Array,"castano chiaro ramato",Array,0,20180608,20180601 Array,"capelli cioccolato",Array,0,20180608,20180601 Array,"castano scuro",Array,0,20180608,20180601 Array,"colori per capelli",Array,0,20180608,20180601 Array,"tinte capelli",Array,0,20180608,20180601 Array,"tinte per capelli",Array,0,20180608,20180601
how can I tell the script that must also take the keys (and values) inside the matrix?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sample json
[
{
"simulationNum": 15,
"symbol": "EWJ",
"underlyingPrice": 11.085,
"underlyingIV": "0.27545",
"forecastPrice": 10.002890081589,
"forecastIV": "-1.513149252259489",
"forecastDays": "74",
"forecastTime": "20131117",
"forecastAmount": "21177",
"isEliminated": true,
"reasonForElimination": 7,
"results": null,
"responseTime": 0.01491904258728
},
{
"simulationNum": 16,
"symbol": "EZU",
"underlyingPrice": 35.5,
"underlyingIV": "0.469201",
"forecastPrice": 35.773053463701,
"forecastIV": "0.23221417962010502",
"forecastDays": "16",
"forecastTime": "20130920",
"forecastAmount": "2458",
"isEliminated": false,
"reasonForElimination": -1,
"results": {
"profitability": 535.47702780641,
"resultAmount": 2145.2625,
"comissionTotal": 15.2625,
"pathRating": 0.51735265796424,
"results": [
{
"price": null,
"strike": "35",
"time": 1379736000,
"days_to_expiration": "24",
"quantity": -3,
"nodeRating": 0.51735265796424
}
]
},
"responseTime": 4.2060079574585
}
]