Added a method to GLBaseObject for generating a jsonString.