Build mysqli to JSON encoding function