add json and test complete