more work on json, found scope bug with test file 49