Setting up JSON router to replace Noddy router