How To Pretty Print JSON in PHP

Author: , June 11th, 2020

If you ever want to view your JSON as a human ;-} $pretty_json = json_encode($data, JSON_PRETTY_PRINT); https://www.php.net/manual/en/function.json-encode.php

How To Load jQuery UI Tabs From JSON

Author: , May 4th, 2011

Use the “dataFilter” Ajax option given the following server reply: { status: 17, result: “You are not logged in” } [code] var $tabs = jQuery(‘#menutabs’).tabs({ ajaxOptions: { dataFilter: function(server_json_reply){ var data = jQuery.parseJSON(server_json_reply); if (data.status == 17) { alert(‘Your session has timed out and you have been logged off.’); window.location = “/”; } return data.result; […]

Triumph!

Author: , April 7th, 2010

Delight, happiness, and glee, even! Thanks to my secret weapon, the JSON module seems to be doing what I want it to do. We will see in the morning when Jer looks at it ;-}

B Good

Author: , April 6th, 2010

Working hard on the Project 52 JSON code. Making progress slowly.

In Motion

Author: , April 6th, 2010

Finally picking up steam: – Had to fix my Apogee Duet – it just stopped working – it seems the drivers got corrupted, so I got the latest ones from the website that are now Snow Leopard compatible. – Did a software update on Naomi’s system, with an Onyx cleaning and a permissions repair first […]

Sometimes even CPAN modules have issues

Author: , January 5th, 2010

Found that DBIx::Wrapper was BROKEN BADLY – now using DBIx::SQLEngine with great success… Just had our first successful test from the database through JSON to the javascript front-end. Very nice. Zooooooooom!

Been a good coding day

Author: , January 4th, 2010

Working on JSON interface. Making progress. Fell asleep for a couple of hours this afternoon. I guess I am still recovering from not feeling well over the weekend. Cleaned the kitchen counters and took out the garbage. Payed bills, and sent out last invoices. Getting caught up. Now, I must collect the funds owed to […]