Added json formatting of realms so RealmController can list realms