adding definitions to JSONEditor class