Tried to add JSON support

It works buuuut….
maincontroller
Json to master merge

mergggg