/    Sign up×
Community /Pin to ProfileBookmark

VUE reading json from asp

I have a VUE component that should fetch data from an asp (classic) page.
The data in this example is [{“id” : “001”, “name”: “Bulbasaur”},{“id” : “002”, “name”: “Ivysaur”},{“id” : “003”, “name”: “Venusaur”}]

When VUE get it from the server it seems that the data is not an array so i cant loop through it but if i copy the data directly from a print of the data in VUE and put it in my variable (array) it can loop through it without any problem.

And if i just put a file called test.json in the server i can read it and loop through it without problem so i guess the asp server does something with it that i do not want if i do it in an asp page instead om just a file.

Please help.
Can post code if you like but thought that maybe is not necessary ?

to post a comment

3 Comments(s)

Copy linkTweet thisAlerts:
@SempervivumNov 21.2019 — When VUE get it from the server it seems that the data is not an array so i cant loop through it[/quote]
Would be helpful if one could view the data being returned by the server, please post it. You can shorten it to a few entries.
Copy linkTweet thisAlerts:
@palleauthorNov 21.2019 — Really sorry but when digging in data i found body instead of body text and that worked :)
Copy linkTweet thisAlerts:
@SempervivumNov 21.2019 — @palle#1611046 Does that mean that the issue is resolved?
×

Success!

Help @palle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...