145146147148149150151152153154155
outPtr += length; } } textBuffer.setCurrentLength(outPtr); return textBuffer.contentsAsArray(); } /** * Will quote given JSON String value using standard quoting, encode * results as UTF-8, and return result as a byte array.