Author Topic: JSON Badgelist does not validate  (Read 3783 times)

Jacal

  • Underling
  • *
  • Posts: 18
JSON Badgelist does not validate
« on: December 16, 2009, 12:05:40 PM »
Hello guys!

I stumble across your JSON feed for badgechecklist, and realized that this was my chance to make my own badge comparison between my characters, and I just LOVE the feed guys.

The problem is, it doesn't validate for my low life hero toons, and using an online validation thingy, I think i found the problem. There seem to be a line break in the ingame_text property in the Gatekeeper badge  (peregrine island safeguard) at the very end, between the last . (dot) and  " (double quotes).

Is this something you Titans can fix, so I can tinker on with your marvelous feeds?

Thanks in advance  
« Last Edit: December 16, 2009, 01:16:16 PM by Jacal »
Word of the wise:
Don't eat yellow snow


Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: JSON Badgelist does not validate
« Reply #1 on: December 16, 2009, 02:25:30 PM »
... low life hero toons...

I thought that the villians were the low lives...  O_o   ?

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: JSON Badgelist does not validate
« Reply #2 on: December 16, 2009, 02:39:02 PM »
Hello guys!

I stumble across your JSON feed for badgechecklist, and realized that this was my chance to make my own badge comparison between my characters, and I just LOVE the feed guys.

The problem is, it doesn't validate for my low life hero toons, and using an online validation thingy, I think i found the problem. There seem to be a line break in the ingame_text property in the Gatekeeper badge  (peregrine island safeguard) at the very end, between the last . (dot) and  " (double quotes).

Is this something you Titans can fix, so I can tinker on with your marvelous feeds?

Thanks in advance 
Boo, I thought I had escaped enough characters :-/

I'll have to check later tonight and see what I can do.
« Last Edit: December 16, 2009, 02:55:41 PM by SaintNicster »


SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: JSON Badgelist does not validate
« Reply #3 on: December 17, 2009, 06:48:52 AM »
Ok, I think I fixed it to work right.  Care to give it another go?


Jacal

  • Underling
  • *
  • Posts: 18
Re: JSON Badgelist does not validate
« Reply #4 on: December 17, 2009, 08:54:41 AM »
Ok, I think I fixed it to work right.  Care to give it another go?


And it works like a charm!!!

Thank you for the quick fix, just outstanding work.

If you like to see my end result of you guys excellent work, here's a link to the page:
Badge Compare

The page takes a bit to load(about 25 seconds), mostly to get the Json feed.
I should probably add some filtering but it will suffice for now :D

Great work guys, thanks a heap.

Jacal
Word of the wise:
Don't eat yellow snow


Jacal

  • Underling
  • *
  • Posts: 18
Re: JSON Badgelist does not validate
« Reply #5 on: December 17, 2009, 09:32:31 AM »
I thought that the villians were the low lives...  O_o   ?

Well even heroes can sink really low:



Jacal
Word of the wise:
Don't eat yellow snow


Tazhyngarth

  • Elite Boss
  • *****
  • Posts: 2,085
    • Titan Network
Re: JSON Badgelist does not validate
« Reply #6 on: December 17, 2009, 02:10:09 PM »
HAHA!  Ya I just watched him in action the other day.  Totally forgot about him at the time of my Post.

SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: JSON Badgelist does not validate
« Reply #7 on: December 17, 2009, 02:49:22 PM »

And it works like a charm!!!

Thank you for the quick fix, just outstanding work.

If you like to see my end result of you guys excellent work, here's a link to the page:
Badge Compare

The page takes a bit to load(about 25 seconds), mostly to get the Json feed.
I should probably add some filtering but it will suffice for now :D

Great work guys, thanks a heap.

Jacal


It's good to see this stuff actually being used.

I would ask that you do some type of caching on the JSON feeds, and only load a certain section/category at a time, to help with bandwidth and usage.


Jacal

  • Underling
  • *
  • Posts: 18
Re: JSON Badgelist does not validate
« Reply #8 on: December 17, 2009, 07:53:28 PM »
It's good to see this stuff actually being used.

I would ask that you do some type of caching on the JSON feeds, and only load a certain section/category at a time, to help with bandwidth and usage.

Can I load just a category of badges from the feed?  The only feed i have found, is the badgecheclist feed, which is for all categories.
Right now I do a "get_file_content" in php, with the feed URL as input, so its a one time read per session per toon.

Jacal
Word of the wise:
Don't eat yellow snow


SaintNicster

  • Elite Boss
  • *****
  • Posts: 865
Re: JSON Badgelist does not validate
« Reply #9 on: December 17, 2009, 09:28:15 PM »
Can I load just a category of badges from the feed?  The only feed i have found, is the badgecheclist feed, which is for all categories.
Right now I do a "get_file_content" in php, with the feed URL as input, so its a one time read per session per toon.

Jacal

Currently, no. 

Though it could be eased by caching a copy of the JSON file, though.  You could load it to your own mysql db, or even just dump it to a local file.  After X amount of time (anywhere from 5 minutes to to 24 hours, or longer), or a manual "refresh" click, pull new copies of the files.  Just thoughts to toss out there.