test json and connect mysql