180 links
  • BigBrainBag
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 8 / 9
Newer►
  • XBGM# Xbox Game Manager
    Wed Mar 22 15:16:22 2017 - permalink -
    QRCode
    - archive.org - http://xbgm.sourceforge.net/files.php
    games manager xbox
  • XBox-Saves Manager 4.5 - LS forums
    Wed Mar 22 15:16:05 2017 - permalink -
    QRCode
    - archive.org - http://www.logic-sunrise.com/forums/files/file/1236-xbox-saves-manager-45/
    games manager xbox
  • 😀 ↔️ ☹️
    Fri Mar 17 17:01:16 2017 - permalink -
    QRCode
    - archive.org - http://codepen.io/chrisgannon/pen/WpjXVr
    button css nice on_off slider smily yc
  • json - PHP "pretty print" json_encode - Stack Overflow
    189
    down vote
    accepted
    PHP has JSON_PRETTY_PRINT option since 5.4.0 (release date 01-Mar-2012).

    This should do the job:

    $json = json_decode($string);
    echo json_encode($json, JSON_PRETTY_PRINT);
    See http://www.php.net/manual/en/function.json-encode.php

    Note: Don't forget to echo "<pre>" before and </pre> after, if you're printing it in HTML ;)

    shareimprove this answer
    answered Nov 30 '12 at 4:27

    petrkotek
    2,55211014
    10  
    In PHP <5.4 replace JSON_PRETTY_PRINT with 128 – Nic Cottrell Aug 19 '14 at 13:36
    1  
    @NicCottrell doesn't work when i test it here sandbox.onlinephpfunctions.com/code/… – drzaus Aug 28 '14 at 5:15
        
    @drzaus works for me there - I can see each key of JSON on separate line (the PHP version used on that site has even JSON_PRETTY_PRINT defined. – petrkotek Aug 28 '14 at 6:07
        
    @beret ahh, I thought sharing it would retain the PHP setting -- change the php version to anything less than 5.4 and it should go back to "unformatted" – drzaus Aug 28 '14 at 13:29
    3  
    Thank you for the <pre>json</pre> tip! – GisMofx Feb 18 '16 at 4:05
    show 2 more comments
    up vote
    11
    down vote
    Hmmm $array = json_decode($json, true); will make your string an array which is easy to print nicely with print_r($array, true);

    But if you really want to prettify your json... Check this out

    shareimprove this answer
    answered Aug 17 '11 at 18:12

    sg3s
    7,82022348
        
    +1 for print_r – Michael Mior Aug 17 '11 at 19:35
        
    @Michael Mior you should see my debugging die die(print('<pre>'.print_r($var, true).'</pre>')) it prints almost anything :p – sg3s Aug 17 '11 at 19:38
    1  
    I usually just view the source and go with var_dump, but whatever works :) – Michael Mior Aug 17 '11 at 21:09
    add a comment
    up vote
    4
    down vote
    Here's a function to pretty up your json: pretty_json
    Fri Mar 17 16:57:26 2017 - permalink -
    QRCode
    - archive.org - http://stackoverflow.com/questions/7097374/php-pretty-print-json-encode
    code debug dev dump good important json php pretty print_r
  • iFrames - HTML lernen - HTML Kurs / Seminar
    frameborder="0"
    Tue Mar 14 13:55:55 2017 - permalink -
    QRCode
    - archive.org - http://www.html-seminar.de/iframes.htm
    code coding html iframe
  • html - Embedding Base64 Images - Stack Overflow
    Tue Mar 14 13:55:37 2017 - permalink -
    QRCode
    - archive.org - http://stackoverflow.com/questions/1207190/embedding-base64-images
    base64 code coding html
  • GitHub - verekia/js-stack-from-scratch: 🎉 V2 release! 🎉 — Step-by-step tutorial to build a modern JavaScript stack.
    JavaScript Stack from Scratch
    Tue Mar 14 11:23:12 2017 - permalink -
    QRCode
    - archive.org - https://github.com/verekia/js-stack-from-scratch
    github guide javascript js scratch stack start
  • security-101-for-saas-startups/security.md at master · forter/security-101-for-saas-startups · GitHub
    Explore
    Tue Mar 14 11:22:42 2017 - permalink -
    QRCode
    - archive.org - https://github.com/forter/security-101-for-saas-startups/blob/master/security.md
    github good guide saas security startup
  • Python IDE to Learn Programming Quickly & Efficiently
    Use a Free &
    Open Source solution

    PyCharm Educational Edition is completely Free and Open Source. Novice programmers can download and use it for educational or any other purposes for free. Instructors and course authors can use it to create, modify and share their own courses.

    No previous programming experience necessary

    Many code editors, IDEs and other tools are too complex if you're just learning how to program. They often make you invest a serious amount of effort and time into understanding how the tool works. PyCharm Educational Edition is easy to get started with, not intimidating, yet powerful enough to guide you all the way through to becoming a professional developer.
    Tue Mar 14 11:06:11 2017 - permalink -
    QRCode
    - archive.org - https://www.jetbrains.com/pycharm-edu/
    edu ide learn oss programming python
  • apache - VirtualHosts ONLY no default? - Stack Overflow
    apachectl -S
    Fri Mar 10 15:47:12 2017 - permalink -
    QRCode
    - archive.org - http://stackoverflow.com/questions/24661687/virtualhosts-only-no-default?rq=1
    apache default virtualhost
  • Default Virtual Host in Apache
    Fri Mar 10 15:46:55 2017 - permalink -
    QRCode
    - archive.org - http://jblevins.org/log/default-virtual-host
    apache default virtualhost
  • Apache default VirtualHost - Stack Overflow
    apache
    Fri Mar 10 15:46:36 2017 - permalink -
    QRCode
    - archive.org - http://stackoverflow.com/questions/5427379/apache-default-virtualhost
    apache default virtualhost
  • python - ImportError: No module named PIL - Stack Overflow
    apt-get install python-imaging
    Fri Mar 10 15:46:00 2017 - permalink -
    QRCode
    - archive.org - http://stackoverflow.com/questions/8863917/importerror-no-module-named-pil
    apache module modules pil pip python setup
  • mod wsgi › Apache › Wiki › ubuntuusers.de
    a2enmod wsgi
    Fri Mar 10 15:45:21 2017 - permalink -
    QRCode
    - archive.org - https://wiki.ubuntuusers.de/Apache/mod_wsgi/
    apache python setup wsgi
  • How To Set Up an Apache, MySQL, and Python (LAMP) Server Without Frameworks on Ubuntu 14.04 | DigitalOcean
    How To Set Up an Apache, MySQL, and Python (LAMP) Server Without Frameworks on Ubuntu 14.04
    Fri Mar 10 15:44:56 2017 - permalink -
    QRCode
    - archive.org - https://www.digitalocean.com/community/tutorials/how-to-set-up-an-apache-mysql-and-python-lamp-server-without-frameworks-on-ubuntu-14-04
    apache python setup
  • Administrator's Guide, Parallels Plesk Panel 11.5
    Fri Mar 10 15:42:42 2017 - permalink -
    QRCode
    - archive.org - http://download1.parallels.com/Plesk/PP11/11.5/Doc/de-DE/online/plesk-administrator-guide/index.htm?fileName=70742.htm
    apache cgi fastCGI handler module php php-fpm server
  • Freebie: 4 Bootstrap Gallery Templates
    Fri Mar 10 15:09:10 2017 - permalink -
    QRCode
    - archive.org - http://demo.tutorialzine.com/2017/02/freebie-4-bootstrap-gallery-templates/#thumbnail
    Bootstrap Gallery Templates
  • Relaxing rain audio for work, play and sleep
    Fri Mar 10 15:08:25 2017 - permalink -
    QRCode
    - archive.org - https://raining.fm/
    code music rain sound
  • Freebie: 4 Bootstrap Gallery Templates
    Freebie:
    4 Bootstrap Gallery Templates
    Fri Mar 10 11:57:17 2017 - permalink -
    QRCode
    - archive.org - http://demo.tutorialzine.com/2017/02/freebie-4-bootstrap-gallery-templates/
    Bootstrap Gallery Templates
  • Tutorialzine Newsletter
    Fri Mar 10 11:54:40 2017 - permalink -
    QRCode
    - archive.org - http://tutorialzine.com/newsletter/w/7633tN763hn8922mnDomOErf3kfg/PYJt4cw3rGUTSKDTdf2r5A/HUeqsbABB4HQwb4ZKZllnA
    dev good guides libs php resources web
Links per page: 20 50 100
◄Older
page 8 / 9
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation