C++ implementation: JKSNValue::toString