A simple class for WPJson plugin