JDataTest::testJsonSerialize

Tests the jsonSerialize method.

Note, this is not completely backward compatible. Previous this would just return the class name.