Good website for checking your theme.

Discussion in 'Mafia' started by GTFAN, Oct 30, 2013.

Moderators: Pamitha, Water
  1. GTFAN

    GTFAN New Member

    Joined:
    May 26, 2013
    Messages:
    19
    Likes Received:
    0
    PO Trainer Name:
    GTFAN
    So I noticed that the current website for checking a theme (not the icekirby one, but the JSON one) kinda tells you jack about where the errors are. SO I went out and found this baby http://jsonformatter.curiousconcept.com/
    It allowed me to check all my horrid errors with commas and the like and told me WHERE THEY WERE (Room gasps here).
    So if someone else already posted about something like this I apologize, but I'm not reading through all the threads to find it.
     
  2. Angel Flonne

    Angel Flonne macaron

    Joined:
    Jan 24, 2013
    Messages:
    509
    Likes Received:
    3
    PO Trainer Name:
    Angel Flonne
    I think http://www.jsonlint.com is better, due to the fact that they are very clear and they show you where your errors are.
     
  3. Roild

    Roild Member

    Joined:
    Jul 21, 2012
    Messages:
    861
    Likes Received:
    11
    PO Trainer Name:
    Roild
    Curious concepts does that too with more clarity. :P jsonlint is just faster for small themes, whereas the formatter is better for the larger, clunky themes. It also picks up more hardcore mistakes.
     
  4. IceKirby

    IceKirby A.K.A. RiceKirby

    Joined:
    Apr 26, 2011
    Messages:
    2,176
    Likes Received:
    635
    PO Trainer Name:
    RiceKirby
    I just use Notepad++'s JSLint plugin. It's faster than both (specially because I can use a shortcut key instead of copying/pasting), although it's not as clear when explaining the error for JSON stuff. Of course, that is irrelevant if you actually know what you are doing with your JSON file.
     
    Last edited: Oct 31, 2013
  5. Fuzzysqurl

    Fuzzysqurl baa baa mareep I do what I want Server Owner Developer I do what I want Server Owner Developer

    Joined:
    Sep 12, 2012
    Messages:
    2,096
    Likes Received:
    967
    I've posted this site a few times around the section. Its also on the documentation page on the wiki.

    The main use of it is the "Invalid Array Length" where jsonlint grinds to a screeching halt. Other than that, the only advantage to the link you posted is that it shows most of your errors (and some false positives due to other errors) at one time, instead of error by error.
     
  6. Scatterbrain

    Scatterbrain You only live once*

    Joined:
    Jul 5, 2012
    Messages:
    865
    Likes Received:
    4
    Most of the times it's just a missing comma after a string or an object so when it says what line the error is on 95% of the time I can manually solve the error without learning what the actual hell it means, though the wording was a little confusing when I first started creating my first theme.
     
Moderators: Pamitha, Water