How can I enable pretty-printing in Chrome manually?












19














There are some great Chrome extensions around for pretty-printing JSON (great SU question here: Google Chrome Plugin for JSON Reading), but they all seem to depend on detecting whether the incoming document is in a JSON format automagically. So, the question is, how can I set it up so that I can pretty-print displayed JSON manually, rather than relying on some extension's magical detection (that may or may not fail to trigger when I need it to)?



I started from that SU post, and found a bootload of extensions:



https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?hl=en
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
https://chrome.google.com/webstore/detail/pretty-json/ddngkjbldiejbheifcmnfmmfiniimbbg
https://chrome.google.com/webstore/detail/json-sh/gjkjdnonlibmbegailhclgbnfdafpgdh



(i.e., the results for JSON formatter). Those, and more, will all detect JSON formatting, and display it in a pretty-printed way, but none of them support an easy, bugproof way to manually turn it on on a page where JSON is not detected (except by, perhaps, tricking the engine by sticking format=json in the query string, but none of them were explicit about telling me I could do that). Is there a better option out there?










share|improve this question
























  • We don't do product recommendations unless prior research is shown (superuser.com/faq). please list the tools you have tried. I'd need to flag this as not useful. If you turn your question into "How can I do X?" it likely won't be deleted. Act now.
    – user 99572 is fine
    Mar 5 '13 at 20:42










  • Modified, thoughts?
    – A. Wilson
    Mar 5 '13 at 23:16










  • From the closing: "We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion." It seems like the question, "Is there a plugin that allows pretty-printing to manually be enabled" is pretty straightforward, and easy to support with reference. Am I missing something here?
    – A. Wilson
    Mar 5 '13 at 23:19






  • 2




    Your question was reopened.
    – user 99572 is fine
    Mar 6 '13 at 21:57






  • 1




    That would make sense if the question didn't start with "How", but it does start that way, so I don't understand your reasoning.
    – A. Wilson
    Sep 29 '15 at 4:28
















19














There are some great Chrome extensions around for pretty-printing JSON (great SU question here: Google Chrome Plugin for JSON Reading), but they all seem to depend on detecting whether the incoming document is in a JSON format automagically. So, the question is, how can I set it up so that I can pretty-print displayed JSON manually, rather than relying on some extension's magical detection (that may or may not fail to trigger when I need it to)?



I started from that SU post, and found a bootload of extensions:



https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?hl=en
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
https://chrome.google.com/webstore/detail/pretty-json/ddngkjbldiejbheifcmnfmmfiniimbbg
https://chrome.google.com/webstore/detail/json-sh/gjkjdnonlibmbegailhclgbnfdafpgdh



(i.e., the results for JSON formatter). Those, and more, will all detect JSON formatting, and display it in a pretty-printed way, but none of them support an easy, bugproof way to manually turn it on on a page where JSON is not detected (except by, perhaps, tricking the engine by sticking format=json in the query string, but none of them were explicit about telling me I could do that). Is there a better option out there?










share|improve this question
























  • We don't do product recommendations unless prior research is shown (superuser.com/faq). please list the tools you have tried. I'd need to flag this as not useful. If you turn your question into "How can I do X?" it likely won't be deleted. Act now.
    – user 99572 is fine
    Mar 5 '13 at 20:42










  • Modified, thoughts?
    – A. Wilson
    Mar 5 '13 at 23:16










  • From the closing: "We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion." It seems like the question, "Is there a plugin that allows pretty-printing to manually be enabled" is pretty straightforward, and easy to support with reference. Am I missing something here?
    – A. Wilson
    Mar 5 '13 at 23:19






  • 2




    Your question was reopened.
    – user 99572 is fine
    Mar 6 '13 at 21:57






  • 1




    That would make sense if the question didn't start with "How", but it does start that way, so I don't understand your reasoning.
    – A. Wilson
    Sep 29 '15 at 4:28














19












19








19







There are some great Chrome extensions around for pretty-printing JSON (great SU question here: Google Chrome Plugin for JSON Reading), but they all seem to depend on detecting whether the incoming document is in a JSON format automagically. So, the question is, how can I set it up so that I can pretty-print displayed JSON manually, rather than relying on some extension's magical detection (that may or may not fail to trigger when I need it to)?



I started from that SU post, and found a bootload of extensions:



https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?hl=en
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
https://chrome.google.com/webstore/detail/pretty-json/ddngkjbldiejbheifcmnfmmfiniimbbg
https://chrome.google.com/webstore/detail/json-sh/gjkjdnonlibmbegailhclgbnfdafpgdh



(i.e., the results for JSON formatter). Those, and more, will all detect JSON formatting, and display it in a pretty-printed way, but none of them support an easy, bugproof way to manually turn it on on a page where JSON is not detected (except by, perhaps, tricking the engine by sticking format=json in the query string, but none of them were explicit about telling me I could do that). Is there a better option out there?










share|improve this question















There are some great Chrome extensions around for pretty-printing JSON (great SU question here: Google Chrome Plugin for JSON Reading), but they all seem to depend on detecting whether the incoming document is in a JSON format automagically. So, the question is, how can I set it up so that I can pretty-print displayed JSON manually, rather than relying on some extension's magical detection (that may or may not fail to trigger when I need it to)?



I started from that SU post, and found a bootload of extensions:



https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc?hl=en
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
https://chrome.google.com/webstore/detail/pretty-json/ddngkjbldiejbheifcmnfmmfiniimbbg
https://chrome.google.com/webstore/detail/json-sh/gjkjdnonlibmbegailhclgbnfdafpgdh



(i.e., the results for JSON formatter). Those, and more, will all detect JSON formatting, and display it in a pretty-printed way, but none of them support an easy, bugproof way to manually turn it on on a page where JSON is not detected (except by, perhaps, tricking the engine by sticking format=json in the query string, but none of them were explicit about telling me I could do that). Is there a better option out there?







google-chrome google-chrome-extensions json






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 20 '17 at 10:17









Community

1




1










asked Mar 5 '13 at 19:51









A. WilsonA. Wilson

3531313




3531313












  • We don't do product recommendations unless prior research is shown (superuser.com/faq). please list the tools you have tried. I'd need to flag this as not useful. If you turn your question into "How can I do X?" it likely won't be deleted. Act now.
    – user 99572 is fine
    Mar 5 '13 at 20:42










  • Modified, thoughts?
    – A. Wilson
    Mar 5 '13 at 23:16










  • From the closing: "We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion." It seems like the question, "Is there a plugin that allows pretty-printing to manually be enabled" is pretty straightforward, and easy to support with reference. Am I missing something here?
    – A. Wilson
    Mar 5 '13 at 23:19






  • 2




    Your question was reopened.
    – user 99572 is fine
    Mar 6 '13 at 21:57






  • 1




    That would make sense if the question didn't start with "How", but it does start that way, so I don't understand your reasoning.
    – A. Wilson
    Sep 29 '15 at 4:28


















  • We don't do product recommendations unless prior research is shown (superuser.com/faq). please list the tools you have tried. I'd need to flag this as not useful. If you turn your question into "How can I do X?" it likely won't be deleted. Act now.
    – user 99572 is fine
    Mar 5 '13 at 20:42










  • Modified, thoughts?
    – A. Wilson
    Mar 5 '13 at 23:16










  • From the closing: "We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion." It seems like the question, "Is there a plugin that allows pretty-printing to manually be enabled" is pretty straightforward, and easy to support with reference. Am I missing something here?
    – A. Wilson
    Mar 5 '13 at 23:19






  • 2




    Your question was reopened.
    – user 99572 is fine
    Mar 6 '13 at 21:57






  • 1




    That would make sense if the question didn't start with "How", but it does start that way, so I don't understand your reasoning.
    – A. Wilson
    Sep 29 '15 at 4:28
















We don't do product recommendations unless prior research is shown (superuser.com/faq). please list the tools you have tried. I'd need to flag this as not useful. If you turn your question into "How can I do X?" it likely won't be deleted. Act now.
– user 99572 is fine
Mar 5 '13 at 20:42




We don't do product recommendations unless prior research is shown (superuser.com/faq). please list the tools you have tried. I'd need to flag this as not useful. If you turn your question into "How can I do X?" it likely won't be deleted. Act now.
– user 99572 is fine
Mar 5 '13 at 20:42












Modified, thoughts?
– A. Wilson
Mar 5 '13 at 23:16




Modified, thoughts?
– A. Wilson
Mar 5 '13 at 23:16












From the closing: "We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion." It seems like the question, "Is there a plugin that allows pretty-printing to manually be enabled" is pretty straightforward, and easy to support with reference. Am I missing something here?
– A. Wilson
Mar 5 '13 at 23:19




From the closing: "We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion." It seems like the question, "Is there a plugin that allows pretty-printing to manually be enabled" is pretty straightforward, and easy to support with reference. Am I missing something here?
– A. Wilson
Mar 5 '13 at 23:19




2




2




Your question was reopened.
– user 99572 is fine
Mar 6 '13 at 21:57




Your question was reopened.
– user 99572 is fine
Mar 6 '13 at 21:57




1




1




That would make sense if the question didn't start with "How", but it does start that way, so I don't understand your reasoning.
– A. Wilson
Sep 29 '15 at 4:28




That would make sense if the question didn't start with "How", but it does start that way, so I don't understand your reasoning.
– A. Wilson
Sep 29 '15 at 4:28










2 Answers
2






active

oldest

votes


















15














JSON Formatter provides buttons to toggle between raw and formatted views of a JSON document.



It is open source. As of November 2016, the last commit was in March 2015. There are over 100 forks, many of which have more recent commits. It's not immediately clear if one of those forks is better maintained.



The OP of this answer originally wrote: "I feel like a big dummy. Some more thorough searching turned up https://chrome.google.com/webstore/detail/the-missing-json-inspecto/hhffklcokfpbcajebmnpijpkaeadlgfn/related, which is exactly what I need." However, an edited version of this answer indicated that that extension was not open source and was no longer maintained.






share|improve this answer



















  • 3




    That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
    – Dan Dascalescu
    Nov 24 '15 at 23:58



















0














I ran into the same problem and dislike the bloated-ware so I develop Jipy
It simply ask you to highlight (full or partial) JSON payload and trigger the format function. (hotkey, context-menu, or button)






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f561288%2fhow-can-i-enable-pretty-printing-in-chrome-manually%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    15














    JSON Formatter provides buttons to toggle between raw and formatted views of a JSON document.



    It is open source. As of November 2016, the last commit was in March 2015. There are over 100 forks, many of which have more recent commits. It's not immediately clear if one of those forks is better maintained.



    The OP of this answer originally wrote: "I feel like a big dummy. Some more thorough searching turned up https://chrome.google.com/webstore/detail/the-missing-json-inspecto/hhffklcokfpbcajebmnpijpkaeadlgfn/related, which is exactly what I need." However, an edited version of this answer indicated that that extension was not open source and was no longer maintained.






    share|improve this answer



















    • 3




      That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
      – Dan Dascalescu
      Nov 24 '15 at 23:58
















    15














    JSON Formatter provides buttons to toggle between raw and formatted views of a JSON document.



    It is open source. As of November 2016, the last commit was in March 2015. There are over 100 forks, many of which have more recent commits. It's not immediately clear if one of those forks is better maintained.



    The OP of this answer originally wrote: "I feel like a big dummy. Some more thorough searching turned up https://chrome.google.com/webstore/detail/the-missing-json-inspecto/hhffklcokfpbcajebmnpijpkaeadlgfn/related, which is exactly what I need." However, an edited version of this answer indicated that that extension was not open source and was no longer maintained.






    share|improve this answer



















    • 3




      That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
      – Dan Dascalescu
      Nov 24 '15 at 23:58














    15












    15








    15






    JSON Formatter provides buttons to toggle between raw and formatted views of a JSON document.



    It is open source. As of November 2016, the last commit was in March 2015. There are over 100 forks, many of which have more recent commits. It's not immediately clear if one of those forks is better maintained.



    The OP of this answer originally wrote: "I feel like a big dummy. Some more thorough searching turned up https://chrome.google.com/webstore/detail/the-missing-json-inspecto/hhffklcokfpbcajebmnpijpkaeadlgfn/related, which is exactly what I need." However, an edited version of this answer indicated that that extension was not open source and was no longer maintained.






    share|improve this answer














    JSON Formatter provides buttons to toggle between raw and formatted views of a JSON document.



    It is open source. As of November 2016, the last commit was in March 2015. There are over 100 forks, many of which have more recent commits. It's not immediately clear if one of those forks is better maintained.



    The OP of this answer originally wrote: "I feel like a big dummy. Some more thorough searching turned up https://chrome.google.com/webstore/detail/the-missing-json-inspecto/hhffklcokfpbcajebmnpijpkaeadlgfn/related, which is exactly what I need." However, an edited version of this answer indicated that that extension was not open source and was no longer maintained.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 24 '16 at 0:44









    Matt McClure

    23924




    23924










    answered Mar 5 '13 at 19:55









    A. WilsonA. Wilson

    3531313




    3531313








    • 3




      That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
      – Dan Dascalescu
      Nov 24 '15 at 23:58














    • 3




      That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
      – Dan Dascalescu
      Nov 24 '15 at 23:58








    3




    3




    That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
    – Dan Dascalescu
    Nov 24 '15 at 23:58




    That extension is not open source, and hasn't been maintained since 2013. JSON Formatter is actively maintained, better rated, and open source.
    – Dan Dascalescu
    Nov 24 '15 at 23:58













    0














    I ran into the same problem and dislike the bloated-ware so I develop Jipy
    It simply ask you to highlight (full or partial) JSON payload and trigger the format function. (hotkey, context-menu, or button)






    share|improve this answer


























      0














      I ran into the same problem and dislike the bloated-ware so I develop Jipy
      It simply ask you to highlight (full or partial) JSON payload and trigger the format function. (hotkey, context-menu, or button)






      share|improve this answer
























        0












        0








        0






        I ran into the same problem and dislike the bloated-ware so I develop Jipy
        It simply ask you to highlight (full or partial) JSON payload and trigger the format function. (hotkey, context-menu, or button)






        share|improve this answer












        I ran into the same problem and dislike the bloated-ware so I develop Jipy
        It simply ask you to highlight (full or partial) JSON payload and trigger the format function. (hotkey, context-menu, or button)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 22 '18 at 18:04









        TLJTLJ

        1012




        1012






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f561288%2fhow-can-i-enable-pretty-printing-in-chrome-manually%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido