I have done a search but my question remains unanswered. I am just playing around trying to create a personal app. I have built a script that returns the below response (copy&pasted from view/source). I have tried adding "index":0/1/2 etc but whenever I put my URL in the website creator "URL to get from" (it's a poll app, and the URL in a browser returns the below) I simply get a "wrong data format" message. Note I have tried adding 3 "dummy" frames in the editor and it still doesn't work. Any ideas greatly appreciated! DUe to my age, json return is written via classic asp and output is exactly as below.
{
"frames":[
{
"text":"Ranking the god rays in Nvidia's Fallout 4 mod by subtlety (PC Gamer)",
"icon":"i3301"
}
{
"text":"Fallout 4 1.7.15 Update live on Steam. Xbox One and PS4 coming next week. (Community Announcements)",
"icon":"i3301"
}
{
"text":"Fallout 4 gets Vault 1080 mod from Nvidia (PC Gamer)",
"icon":"i3301"
}
]
}
I put your code above into JSONLint for validation.
It looks like you need to split the frames with a comma as per:
{
"frames": [{
"text": "Ranking the god rays in Nvidia's Fallout 4 mod by subtlety (PC Gamer)",
"icon": "i3301"
}, {
"text": "Fallout 4 1.7.15 Update live on Steam. Xbox One and PS4 coming next week. (Community Announcements)",
"icon": "i3301"
}, {
"text": "Fallout 4 gets Vault 1080 mod from Nvidia (PC Gamer)",
"icon": "i3301"
}]
}
I haven't tested it on the hardware, but it might be somewhere for you to start.
I put your code above into JSONLint for validation.
It looks like you need to split the frames with a comma as per:
{
"frames": [{
"text": "Ranking the god rays in Nvidia's Fallout 4 mod by subtlety (PC Gamer)",
"icon": "i3301"
}, {
"text": "Fallout 4 1.7.15 Update live on Steam. Xbox One and PS4 coming next week. (Community Announcements)",
"icon": "i3301"
}, {
"text": "Fallout 4 gets Vault 1080 mod from Nvidia (PC Gamer)",
"icon": "i3301"
}]
}
I haven't tested it on the hardware, but it might be somewhere for you to start.
Simon Bennett
Hello all
I have done a search but my question remains unanswered. I am just playing around trying to create a personal app. I have built a script that returns the below response (copy&pasted from view/source). I have tried adding "index":0/1/2 etc but whenever I put my URL in the website creator "URL to get from" (it's a poll app, and the URL in a browser returns the below) I simply get a "wrong data format" message. Note I have tried adding 3 "dummy" frames in the editor and it still doesn't work. Any ideas greatly appreciated! DUe to my age, json return is written via classic asp and output is exactly as below.
{ "frames":[ { "text":"Ranking the god rays in Nvidia's Fallout 4 mod by subtlety (PC Gamer)", "icon":"i3301" } { "text":"Fallout 4 1.7.15 Update live on Steam. Xbox One and PS4 coming next week. (Community Announcements)", "icon":"i3301" } { "text":"Fallout 4 gets Vault 1080 mod from Nvidia (PC Gamer)", "icon":"i3301" } ] }
As per this question, I've had JSON issues as well.
I put your code above into JSONLint for validation.
It looks like you need to split the frames with a comma as per:
I haven't tested it on the hardware, but it might be somewhere for you to start.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstPG
As per this question, I've had JSON issues as well.
I put your code above into JSONLint for validation.
It looks like you need to split the frames with a comma as per:
I haven't tested it on the hardware, but it might be somewhere for you to start.
Simon Bennett
-
How to pull data from external site to display?
-
nodejs request "gets acces denied"
-
curl to python for eventghost
-
Push text from Eventghost to LaMetric via python
-
Basic API pull and json parse example....
-
A guide for starting an app?
-
A small wrapper to push your just created JIRA issues to your LaMetric.
-
Simple project to push home consumption data to be shown on a Lametric device
-
Interface to have Slack send messages to a LaMetric Time
-
Very simple module to push frames to LaMetric
See all 149 topics