A class for handling JSON effectively from inside of WordPress