more json tests, problem with else case called without apparent reason