1. The Naughty & Nice promo card uses colorless mana symbols without curly brackets (i.e., "1{B}{B}" and "1{W}{W}").
2. What do you think about a "designer" attribute on the M15 cards, rather than having the designer credit in the flavor text?
3. Would it be possible to have a way to tell which expansions are available online? There's an "onlineOnly" field, but could there be a "physicalOnly" field, or just do "isOnline" and "isPhysical", or something like that? (I'm actually not too familiar with Magic Online, are the available cards just each block set and core set since Mirage, plus the Masters sets? If so this might be unnecessary.)
#1 Naughty & Nice: Fixed!
#2 Designer: I think it's an interesting idea, however I'd like to wait a few more sets to see if this is just a fad by Wizards or if this will continue. Not sure I want to do it if it's just a set or two.
#3 physicalOnly/isOnline: That's not a bad idea. It means a bit more monitoring on my part, to keep track of which sets are released on MTGO and then updating MTGJSON when they are. So I'm not jumping up and down at doing it right away
Hi, I looked at your site and your example JSON of Sen Triplets on the home page is not technically JSON. All the property names are lacking double quotes. You actual physical files are in JSON format, so I am curious why the example on the home page does not follow the format. Nothing in the HTML source of the home page should prevent you from double quoting property names in the example.
It's important to keep technical documentation up to date.
Hi, I looked at your site and your example JSON of Sen Triplets on the home page is not technically JSON. All the property names are lacking double quotes. You actual physical files are in JSON format, so I am curious why the example on the home page does not follow the format. Nothing in the HTML source of the home page should prevent you from double quoting property names in the example.
It's important to keep technical documentation up to date.
Without the quotes it made it a bit easier to read and I didn't think it was that big of a deal. Regardless, I've updated the site so the example data has quotes around the key names.
Hi, I looked at your site and your example JSON of Sen Triplets on the home page is not technically JSON. All the property names are lacking double quotes. You actual physical files are in JSON format, so I am curious why the example on the home page does not follow the format. Nothing in the HTML source of the home page should prevent you from double quoting property names in the example.
It's important to keep technical documentation up to date.
Without the quotes it made it a bit easier to read and I didn't think it was that big of a deal. Regardless, I've updated the site so the example data has quotes around the key names.
Thanks for updating the example. With the CSS you originally had for the example JSON, the extra double quotes around property names do not decrease the legibility of the example.
By the way the last line of the example JSON should not end in a comma, unless you were intending to put more name-value pairs.
"imageName" : "sen triplets",
Most developers don't think the documentation is a big deal until other developers (and even non-developers!) try to use the library/tool. I'm glad you were open to updating the documentation. Some other open-source developers I have interacted with are not so "open" about it. So, thank you!
This may seem like a silly request, but could the AllSets JSON files be sorted in some way? I was thinking either alphabetically (like the AllCards JSON files) or by release date (as it's displayed on the website).
AllCards.json shows a single rarity per card, while cards can have different rarities depending on the set they appear in; Tarmogoyf is Mythic Rare in MMA, but Rare in FUT
edit: AllSets.json also shows a single rarity, but that's fine since cards show up for each set they're in, with the correct rarity
edit2: at least rarity, flavor, artist, number, and multiverseid can change between sets; this information is lost in AllCards.json
AllCards.json shows a single rarity per card, while cards can have different rarities depending on the set they appear in; Tarmogoyf is Mythic Rare in MMA, but Rare in FUT
edit: AllSets.json also shows a single rarity, but that's fine since cards show up for each set they're in, with the correct rarity
edit2: at least rarity, flavor, artist, number, and multiverseid can change between sets; this information is lost in AllCards.json
I believe you are mistaken. My extraction of AllSets.json shows that Tarmogoyf is a Mythic in MMA and Rare and FUT.
This may seem like a silly request, but could the AllSets JSON files be sorted in some way? I was thinking either alphabetically (like the AllCards JSON files) or by release date (as it's displayed on the website).
It's not a silly request, however a JSON object doesn't have a guaranteed order of keys according to the JSON spec ("An object is an unordered set of name/value pairs"). So I think if I added the keys in order, I think the code that writes the JSON will keep this same order, but there are no guarantees. I'm hesistant to start ordering it, have someone rely on that order, and then have that order change to something else due to a change in the JSON writing code which is beyond my control.
AllCards.json shows a single rarity per card, while cards can have different rarities depending on the set they appear in; Tarmogoyf is Mythic Rare in MMA, but Rare in FUT
AllCards.json is meant to be lossy when merging data from multiple sets. You are right that it wasn't clear in the documentation that this was happening. So I have updated the docs to be more clear. In addition, 'rarity' wasn't supposed to be in the card data, as it's as you mention a set specific field. I have fixed this mistake. Basically, the AllCards.json file isn't meant to contain all data from every set, it's just meant as a quick lighter weight option that many folks have asked me for through e-mail over the past few months. The majority of users will want to stick with AllSets.json or the individual set files.
I wanted to ask advice for anyone who might have some for me. I am working on parsing this data in .NET using the Newtonsoft Json parser. The issue I am having is that since the sets do not have a name/value pair I am having a hard time parsing the data from it. Does anyone out there have an advice on how to get around this?
I wanted to ask advice for anyone who might have some for me. I am working on parsing this data in .NET using the Newtonsoft Json parser. The issue I am having is that since the sets do not have a name/value pair I am having a hard time parsing the data from it. Does anyone out there have an advice on how to get around this?
Is there supposed to be an "old code" entry with the ones I am expecting or are the gatherer codes here wrong or am I just crazy?
There are multiple sources of set codes:
* Gatherer
* CCGHQ (new format and old format)
* Wiki http://mtgsalvation.gamepedia.com/Urza's_Saga
* Magiccards.info
* Assorted Magic Software
They all tend to have different codes.
'USG' is used for both CCGHQ and the Wiki.
'UZ' is used on gatherer (and specified in the json as 'gathererCode')
'US' is used on magiccards.info
And of course various magic software uses various codes.
Gatherer used to use two letter codes on their site because switching to proper 3 letter codes.
The 'oldCode' field was always a bit of a hack. It included codes used by some magic software, but not all the codes by all the software. I probably should remove it and then possibly add new very specific fields like mwsCode, etc. I'm in no rush to do it though.
I tried posting this on the Cockatrice thread, but this seems a better place.
I'm having a problem installing Cockatrice. I keep getting a host not found error error when I try to select a source. I'm using this link: http://mtgjson.com/json/AllSets.json
Can anyone help?
To clarify the error appears on the source selection page of the Oracle Importer.
I tried posting this on the Cockatrice thread, but this seems a better place.
I'm having a problem installing Cockatrice. I keep getting a host not found error error when I try to select a source. I'm using this link: http://mtgjson.com/json/AllSets.json
Can anyone help?
To clarify the error appears on the source selection page of the Oracle Importer.
MTGJSON is used in MANY different projects and this thread isn't for Cockatrice support. Try http://reddit.com/r/cockatrice
Very odd, I ran the Oracle importer using the JSon website and it said it downloaded the KTK cards but then they are not searchable and when I look at the set order KTK is on top but has no long name.
Private Mod Note
():
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
#1 Naughty & Nice: Fixed!
#2 Designer: I think it's an interesting idea, however I'd like to wait a few more sets to see if this is just a fad by Wizards or if this will continue. Not sure I want to do it if it's just a set or two.
#3 physicalOnly/isOnline: That's not a bad idea. It means a bit more monitoring on my part, to keep track of which sets are released on MTGO and then updating MTGJSON when they are. So I'm not jumping up and down at doing it right away
It's important to keep technical documentation up to date.
Without the quotes it made it a bit easier to read and I didn't think it was that big of a deal. Regardless, I've updated the site so the example data has quotes around the key names.
Thanks for updating the example. With the CSS you originally had for the example JSON, the extra double quotes around property names do not decrease the legibility of the example.
By the way the last line of the example JSON should not end in a comma, unless you were intending to put more name-value pairs.
Most developers don't think the documentation is a big deal until other developers (and even non-developers!) try to use the library/tool. I'm glad you were open to updating the documentation. Some other open-source developers I have interacted with are not so "open" about it. So, thank you!
edit: AllSets.json also shows a single rarity, but that's fine since cards show up for each set they're in, with the correct rarity
edit2: at least rarity, flavor, artist, number, and multiverseid can change between sets; this information is lost in AllCards.json
I believe you are mistaken. My extraction of AllSets.json shows that Tarmogoyf is a Mythic in MMA and Rare and FUT.
How are you looking at the data?
edit: of course, if AllCards is *meant* to be lossy, then there is no issue
Fixed!
It's not a silly request, however a JSON object doesn't have a guaranteed order of keys according to the JSON spec ("An object is an unordered set of name/value pairs"). So I think if I added the keys in order, I think the code that writes the JSON will keep this same order, but there are no guarantees. I'm hesistant to start ordering it, have someone rely on that order, and then have that order change to something else due to a change in the JSON writing code which is beyond my control.
AllCards.json is meant to be lossy when merging data from multiple sets. You are right that it wasn't clear in the documentation that this was happening. So I have updated the docs to be more clear. In addition, 'rarity' wasn't supposed to be in the card data, as it's as you mention a set specific field. I have fixed this mistake. Basically, the AllCards.json file isn't meant to contain all data from every set, it's just meant as a quick lighter weight option that many folks have asked me for through e-mail over the past few months. The majority of users will want to stick with AllSets.json or the individual set files.
Thank you! I really appreciate it
If something is in JSON and it doesn't have a name/value pair, then that means it's in a list. Just iterate through the list to get the value.
http://stackoverflow.com/questions/13839865/how-to-parse-my-json-string-in-c4-0using-newtonsoft-json-package
Is there supposed to be an "old code" entry with the ones I am expecting or are the gatherer codes here wrong or am I just crazy?
There are multiple sources of set codes:
* Gatherer
* CCGHQ (new format and old format)
* Wiki http://mtgsalvation.gamepedia.com/Urza's_Saga
* Magiccards.info
* Assorted Magic Software
They all tend to have different codes.
'USG' is used for both CCGHQ and the Wiki.
'UZ' is used on gatherer (and specified in the json as 'gathererCode')
'US' is used on magiccards.info
And of course various magic software uses various codes.
Gatherer used to use two letter codes on their site because switching to proper 3 letter codes.
The 'oldCode' field was always a bit of a hack. It included codes used by some magic software, but not all the codes by all the software. I probably should remove it and then possibly add new very specific fields like mwsCode, etc. I'm in no rush to do it though.
I'm having a problem installing Cockatrice. I keep getting a host not found error error when I try to select a source. I'm using this link: http://mtgjson.com/json/AllSets.json
Can anyone help?
To clarify the error appears on the source selection page of the Oracle Importer.
MTGJSON is used in MANY different projects and this thread isn't for Cockatrice support. Try http://reddit.com/r/cockatrice
No help needed. I'll add KTK just as soon as Wizards puts it up on gatherer (usually a few days to a week or two before release).
PS: I noticed Kaboom! is missing its exclamation mark when it refers to itself in its text.
Minouris's Library - Collection manager and deck builder. It's nifty - Check it out!