JSON validator – JSONLint / JSONFormatter
{"employees":[ {"firstName":"John", "lastName":"Doe"}, {"firstName":"Anna", "lastName":"Smith"}, {"firstName":"Peter", "lastName":"Jones"} ]}
Polyfill for older browsers – JSON3
var JSON = JSON.stringify(OBJECT, null, 2);
Make sure content within the object complies to UTF-8, if not encode it before !
Even DateTime is nicely encoded :)
class User { public $firstname = ""; public $lastname = ""; public $birthdate = ""; } $user = new User(); $user->firstname = "foo"; $user->lastname = "bar"; // Returns: {"firstname":"foo","lastname":"bar"} $user->birthdate = new DateTime(); /* Returns: { "firstname":"foo", "lastname":"bar", "birthdate": { "date":"2016-02-18 11:42:58", "timezone_type":3, "timezone":"Europe\/Berlin" } } */
What are particle animations? Particle network animations in JavaScript typically involve creating visual representations of… Read More
BOOKING SOLUTIONS 202x This is my take on a subset of booking, appointment, PMS or… Read More
THE GOAL Create a system cron for WordPress, that is accessible and can be easily… Read More
2024, what's cooking? Slowly getting into the 2024 spirit. 3 projects coming to a close… Read More
Short look back at 2023 This has been a busy and interesting year. I am… Read More
Elementor Pro provides grid containers as an experimental feature. The options provided are limited, when… Read More