adding some helper methods to Json class