API JSONFM format

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

API JSONFM format

John Doe-27
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&format=jsonfm ) 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&format=jsonfm ). Where did the basic simple clean output go? and how do I get it back?



_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Chad
On Fri Dec 12 2014 at 3:42:22 PM John <[hidden email]> 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&format=jsonfm ) 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&format=jsonfm ). 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Betacommand
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 <[hidden email]> wrote:
On Fri Dec 12 2014 at 3:42:22 PM John <[hidden email]> 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&format=jsonfm ) 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&format=jsonfm ). 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Yuri Astrakhan-2
I would actually suggest you use POSTman chrome extension, which makes testing API much easier than using format=jsonfm.

On Sat, Dec 13, 2014 at 3:24 AM, Betacommand <[hidden email]> 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 <[hidden email]> wrote:
On Fri Dec 12 2014 at 3:42:22 PM John <[hidden email]> 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&format=jsonfm ) 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&format=jsonfm ). 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Betacommand
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 <[hidden email]> wrote:
I would actually suggest you use POSTman chrome extension, which makes testing API much easier than using format=jsonfm.

On Sat, Dec 13, 2014 at 3:24 AM, Betacommand <[hidden email]> 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 <[hidden email]> wrote:
On Fri Dec 12 2014 at 3:42:22 PM John <[hidden email]> 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&format=jsonfm ) 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&format=jsonfm ). 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Yuri Astrakhan-2
FYI, Firefox has similar 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 <[hidden email]> 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 <[hidden email]> wrote:
I would actually suggest you use POSTman chrome extension, which makes testing API much easier than using format=jsonfm.

On Sat, Dec 13, 2014 at 3:24 AM, Betacommand <[hidden email]> 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 <[hidden email]> wrote:
On Fri Dec 12 2014 at 3:42:22 PM John <[hidden email]> 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&format=jsonfm ) 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&format=jsonfm ). 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Brad Jorsch (Anomie)
On Fri, Dec 12, 2014 at 7:24 PM, Betacommand <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Betacommand
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) <[hidden email]> wrote:
On Fri, Dec 12, 2014 at 7:24 PM, Betacommand <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: API JSONFM format

Erik Bernhardson
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 <[hidden email]> 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) <[hidden email]> wrote:
On Fri, Dec 12, 2014 at 7:24 PM, Betacommand <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api