json code fails