Package graphql.util

Class EscapeUtil


  • public final class EscapeUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escapeJsonString​(java.lang.String stringValue)
      Encodes the value as a JSON string according to https://json.org/ rules
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • escapeJsonString

        public static java.lang.String escapeJsonString​(java.lang.String stringValue)
        Encodes the value as a JSON string according to https://json.org/ rules
        Parameters:
        stringValue - the value to encode as a JSON string
        Returns:
        the encoded string