JSON representation of an eClass

This code will create a text representation of the eClass in JSON
format.

I'm using this code when building WADL documentation.  It's a simple utility class that seems to best fit into your project instead of creating a new one.