json traversal works given form inputs