test json both ways