Forgot to add the jsoninput in the method gettrains