added JSON format for entities