Look at the other JsonAsString functions, do they return const char* ? If so, this breaks convention.