why cant I get a simple pretty print version of the json format via the new API?
With the old API (example: http://gameshub.wikia.com/api.php?action=query&list=recentchanges&fo... ) you got a basic text output. Nice clean and simple.
With the recent API rewrite, someone decided to really screw with the look. Now you get a color coded, HTML rich, text on a Blue background (Example: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&fo... ). Where did the basic simple clean output go? and how do I get it back?
On Fri Dec 12 2014 at 3:42:22 PM John phoenixoverride@gmail.com wrote:
why cant I get a simple pretty print version of the json format via the new API?
With the old API (example: http://gameshub.wikia.com/api.php?action=query&list=recentchanges&fo... ) you got a basic text output. Nice clean and simple.
With the recent API rewrite, someone decided to really screw with the look. Now you get a color coded, HTML rich, text on a Blue background (Example: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&fo... ). Where did the basic simple clean output go? and how do I get it back?
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
-Chad
Im not sure who you polled, but the red/blue disaster that that is the current format is about 100x harder for me to read than the old version. If reverting isnt an option can we get something like jsontxt added where we can get the un-prettifed version? Adding coloring may help for some users, but for many you will find it problematic. Basic Pretty-Print JSON makes for a simple rendering of information. when you end up with strings one color numeric values a second, add in a blue background, the result feels like a bad acid trip.
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
On Fri Dec 12 2014 at 3:42:22 PM John phoenixoverride@gmail.com wrote:
why cant I get a simple pretty print version of the json format via the new API?
With the old API (example: http://gameshub.wikia.com/api.php?action=query&list=recentchanges&fo... ) you got a basic text output. Nice clean and simple.
With the recent API rewrite, someone decided to really screw with the look. Now you get a color coded, HTML rich, text on a Blue background (Example: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&fo... ). Where did the basic simple clean output go? and how do I get it back?
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
-Chad
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
I would actually suggest you use POSTman chrome extension https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en, which makes testing API much easier than using format=jsonfm.
On Sat, Dec 13, 2014 at 3:24 AM, Betacommand Betacommand@gmail.com wrote:
Im not sure who you polled, but the red/blue disaster that that is the current format is about 100x harder for me to read than the old version. If reverting isnt an option can we get something like jsontxt added where we can get the un-prettifed version? Adding coloring may help for some users, but for many you will find it problematic. Basic Pretty-Print JSON makes for a simple rendering of information. when you end up with strings one color numeric values a second, add in a blue background, the result feels like a bad acid trip.
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
On Fri Dec 12 2014 at 3:42:22 PM John phoenixoverride@gmail.com wrote:
why cant I get a simple pretty print version of the json format via the new API?
With the old API (example: http://gameshub.wikia.com/api.php?action=query&list=recentchanges&fo... ) you got a basic text output. Nice clean and simple.
With the recent API rewrite, someone decided to really screw with the look. Now you get a color coded, HTML rich, text on a Blue background (Example: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&fo... ). Where did the basic simple clean output go? and how do I get it back?
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
-Chad
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
And thats not an option, I dont use chrome, and thus a chrome extension does me no good. Why cant we stick to KISS? JSON is a very basic format, that is really easy to read. If I wanted an acid trip, I would take acid. Trying to work with an API that gives you a headache due to the visual "improvements" reminds me of the old blink HTML, or the red/blue fad of the early internet ( http://upload.wikimedia.org/wikipedia/commons/9/9d/Blue_red.svg ). Getting a basic plain implementation of JSON shouldn't be as hard as a root canal, but it seems that people are pushing progress for the sake of progress regardless of the side effects.
On Sat, Dec 13, 2014 at 8:56 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
I would actually suggest you use POSTman chrome extension https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en, which makes testing API much easier than using format=jsonfm.
On Sat, Dec 13, 2014 at 3:24 AM, Betacommand Betacommand@gmail.com wrote:
Im not sure who you polled, but the red/blue disaster that that is the current format is about 100x harder for me to read than the old version. If reverting isnt an option can we get something like jsontxt added where we can get the un-prettifed version? Adding coloring may help for some users, but for many you will find it problematic. Basic Pretty-Print JSON makes for a simple rendering of information. when you end up with strings one color numeric values a second, add in a blue background, the result feels like a bad acid trip.
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
On Fri Dec 12 2014 at 3:42:22 PM John phoenixoverride@gmail.com wrote:
why cant I get a simple pretty print version of the json format via the new API?
With the old API (example: http://gameshub.wikia.com/api.php?action=query&list=recentchanges&fo... ) you got a basic text output. Nice clean and simple.
With the recent API rewrite, someone decided to really screw with the look. Now you get a color coded, HTML rich, text on a Blue background (Example: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&fo... ). Where did the basic simple clean output go? and how do I get it back?
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
-Chad
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
FYI, Firefox has similar https://addons.mozilla.org/en-US/firefox/addon/restclient/ extension. I guess we could make format=jsonfm and format=jsonfm2 or something like that, where jsonfm2 is non-color-coded. In any case, we might want to use <pre wrapped> style to make it better styled.
On Sat, Dec 13, 2014 at 5:11 PM, Betacommand Betacommand@gmail.com wrote:
And thats not an option, I dont use chrome, and thus a chrome extension does me no good. Why cant we stick to KISS? JSON is a very basic format, that is really easy to read. If I wanted an acid trip, I would take acid. Trying to work with an API that gives you a headache due to the visual "improvements" reminds me of the old blink HTML, or the red/blue fad of the early internet ( http://upload.wikimedia.org/wikipedia/commons/9/9d/Blue_red.svg ). Getting a basic plain implementation of JSON shouldn't be as hard as a root canal, but it seems that people are pushing progress for the sake of progress regardless of the side effects.
On Sat, Dec 13, 2014 at 8:56 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
I would actually suggest you use POSTman chrome extension https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en, which makes testing API much easier than using format=jsonfm.
On Sat, Dec 13, 2014 at 3:24 AM, Betacommand Betacommand@gmail.com wrote:
Im not sure who you polled, but the red/blue disaster that that is the current format is about 100x harder for me to read than the old version. If reverting isnt an option can we get something like jsontxt added where we can get the un-prettifed version? Adding coloring may help for some users, but for many you will find it problematic. Basic Pretty-Print JSON makes for a simple rendering of information. when you end up with strings one color numeric values a second, add in a blue background, the result feels like a bad acid trip.
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
On Fri Dec 12 2014 at 3:42:22 PM John phoenixoverride@gmail.com wrote:
why cant I get a simple pretty print version of the json format via the new API?
With the old API (example: http://gameshub.wikia.com/api.php?action=query&list=recentchanges&fo... ) you got a basic text output. Nice clean and simple.
With the recent API rewrite, someone decided to really screw with the look. Now you get a color coded, HTML rich, text on a Blue background (Example: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&fo... ). Where did the basic simple clean output go? and how do I get it back?
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
-Chad
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
On Fri, Dec 12, 2014 at 7:24 PM, Betacommand Betacommand@gmail.com wrote:
can we get something like jsontxt added where we can get the un-prettifed version?
On Sat, Dec 13, 2014 at 9:24 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
I guess we could make format=jsonfm and format=jsonfm2 or something like that, where jsonfm2 is non-color-coded.
No, we're not going to add cruft like "format=jsontxt" or "format=jsonfm2".
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
This. Specifically, in [[Special:MyPage/apioutput.css]]:
.source-javascript * { color: black !important;}
Or you could do something more targeted at GeSHi's output to recolor the various pieces to colors you like better.
I would define cruft as the current format, not the classic plain text format. The current JSONFM format causes chromostereopsis by mixing the blue/red/green format that it is currently using. Creating apioutput.css isnt a solution, its ignoring the actual issue. This reminds me of the Visual editor debacle where the devs decided to say screw you to the community. Depending on an individual's color spectrum, and rendering this current output is horrendously hard to read. Providing a non-colorcoded output is logical, and far easier than creating the fucked up barely readable output that is the current version.
On Sat, Dec 13, 2014 at 4:50 PM, Brad Jorsch (Anomie) <bjorsch@wikimedia.org
wrote:
On Fri, Dec 12, 2014 at 7:24 PM, Betacommand Betacommand@gmail.com wrote:
can we get something like jsontxt added where we can get the un-prettifed version?
On Sat, Dec 13, 2014 at 9:24 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
I guess we could make format=jsonfm and format=jsonfm2 or something like that, where jsonfm2 is non-color-coded.
No, we're not going to add cruft like "format=jsontxt" or "format=jsonfm2".
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
This. Specifically, in [[Special:MyPage/apioutput.css]]:
.source-javascript * { color: black !important;}
Or you could do something more targeted at GeSHi's output to recolor the various pieces to colors you like better.
-- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
I still think the easiest solution here is for users that care to view the json directly(a couple mentioned above for a few browsers, they are available for pretty much everything), and let a browser extension format it. Then everyone gets what they want and we all win.
On Sat, Dec 13, 2014 at 2:24 PM, Betacommand Betacommand@gmail.com wrote:
I would define cruft as the current format, not the classic plain text format. The current JSONFM format causes chromostereopsis by mixing the blue/red/green format that it is currently using. Creating apioutput.css isnt a solution, its ignoring the actual issue. This reminds me of the Visual editor debacle where the devs decided to say screw you to the community. Depending on an individual's color spectrum, and rendering this current output is horrendously hard to read. Providing a non-colorcoded output is logical, and far easier than creating the fucked up barely readable output that is the current version.
On Sat, Dec 13, 2014 at 4:50 PM, Brad Jorsch (Anomie) < bjorsch@wikimedia.org> wrote:
On Fri, Dec 12, 2014 at 7:24 PM, Betacommand Betacommand@gmail.com wrote:
can we get something like jsontxt added where we can get the un-prettifed version?
On Sat, Dec 13, 2014 at 9:24 AM, Yuri Astrakhan <yastrakhan@wikimedia.org
wrote:
I guess we could make format=jsonfm and format=jsonfm2 or something like that, where jsonfm2 is non-color-coded.
No, we're not going to add cruft like "format=jsontxt" or "format=jsonfm2".
On Fri, Dec 12, 2014 at 6:45 PM, Chad innocentkiller@gmail.com wrote:
You can't. The pretty one is so humans can read it better.
Or maybe you can disable CSS.
This. Specifically, in [[Special:MyPage/apioutput.css]]:
.source-javascript * { color: black !important;}
Or you could do something more targeted at GeSHi's output to recolor the various pieces to colors you like better.
-- Brad Jorsch (Anomie) Software Engineer Wikimedia Foundation
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org