Added some JSON return for objects.