jsoninfo: put command parsing in the functions table