add test for json support