maddevs
(MaD)
October 16, 2019, 10:36am
#1
I want to making dynamic list using web API. i tried but failed everytime. Its work when i using json in text , but i got error message when i tried to parse data from web url.
Web API Link : API
Testing AIS program_test.ais (13.9 KB)
Anyone help me to findout my problem?
ImranTariq
(Imran Tariq)
October 16, 2019, 10:42am
#2
screenshots of error and blocks are more helpful than Ais,
1 Like
maddevs
(MaD)
October 16, 2019, 10:45am
#3
Working file when i put json into text. But got error when i want to parse from api request content.
The error message is : Invalid json parsing.
Please check my web api where it return Jason format data.
ImranTariq
(Imran Tariq)
October 16, 2019, 10:50am
#4
importing screen will not open for anyone because you are using extensions
maddevs
(MaD)
October 16, 2019, 10:53am
#5
Using jsontools extension
ImranTariq
(Imran Tariq)
October 16, 2019, 11:05am
#6
i think problem is with your json, showing error josn invalid, arguments must be valid json
maddevs
(MaD)
October 16, 2019, 11:08am
#7
but when i put same request data from web api content into text. its work fine.
So i think json format is valid.
ImranTariq
(Imran Tariq)
October 16, 2019, 11:09am
#8
i tried to decode it, but showing not valid json,
maddevs
(MaD)
October 16, 2019, 11:11am
#9
JSON :
[{“id”:1,“cat”:“C”,“totalQ”:“54”},{“id”:2,“cat”:“C#”,“totalQ”:“42”},{“id”:3,“cat”:“PHP”,“totalQ”:“62”},{“id”:4,“cat”:“JAVASCRIPT”,“totalQ”:“52”},{“id”:5,“cat”:“PYTHON”,“totalQ”:“38”},{“id”:6,“cat”:“SQL”,“totalQ”:“28”},{“id”:7,“cat”:“C++”,“totalQ”:“43”},{“id”:8,“cat”:“JAVA”,“totalQ”:“19”},{“id”:9,“cat”:“RUBY”,“totalQ”:“19”}]
please look
ImranTariq
(Imran Tariq)
October 16, 2019, 11:13am
#10
i have seen it on web, but web component is getting in text and changing it, try to show it in label and check how its showing
1 Like
Srrazmi
(Web And App Developer)
October 16, 2019, 11:21am
#11
It’s A Manually Stored Data In PHP Extension It’s Not Work , The Web Response Type is text/html;charset=UTF-8
2 Likes
ImranTariq
(Imran Tariq)
October 16, 2019, 11:35am
#12
yes if i try to set in app this json, then its accepting, but from web its changing json to invalid format
1 Like
maddevs
(MaD)
October 16, 2019, 11:37am
#13
Now working it.Thanks for trying to help
1 Like
Srrazmi
(Web And App Developer)
October 16, 2019, 11:38am
#14
Which Blocks Are You Using , Share Here To Help Other Kodurs
maddevs
(MaD)
October 16, 2019, 11:48am
#15
it was problem for web api where i using htmlspecialcharacter function in json encode. Remove it , then working.
2 Likes
Please mark this post as solution so other can directly see
1 Like
system
(system)
Closed
November 15, 2019, 12:00pm
#17
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.