MySQL to JSON-p