extracted serializion out of json views into new services
added tests to initializer