Finally sending good json content. Will tackle the tests later