improve and test some json