Class JSONUtil

java.lang.Object
org.infinispan.server.resp.json.JSONUtil

public class JSONUtil extends Object
  • Field Details

    • JSON_ROOT

      public static byte[] JSON_ROOT
    • configForDefiniteSet

      public static final com.jayway.jsonpath.Configuration configForDefiniteSet
    • parserForDefiniteSet

      public static com.jayway.jsonpath.ParseContext parserForDefiniteSet
    • configForSet

      public static final com.jayway.jsonpath.Configuration configForSet
    • parserForSet

      public static com.jayway.jsonpath.ParseContext parserForSet
    • configForGet

      public static final com.jayway.jsonpath.Configuration configForGet
    • parserForGet

      public static com.jayway.jsonpath.ParseContext parserForGet
    • configForMod

      public static final com.jayway.jsonpath.Configuration configForMod
    • parserForMod

      public static com.jayway.jsonpath.ParseContext parserForMod
    • configForDefiniteMod

      public static final com.jayway.jsonpath.Configuration configForDefiniteMod
    • parserForDefiniteMod

      public static com.jayway.jsonpath.ParseContext parserForDefiniteMod
    • objectMapper

      public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • JSONUtil

      public JSONUtil()
  • Method Details

    • writeBytes

      public static void writeBytes(ObjectOutput output, byte[] b) throws IOException
      Throws:
      IOException
    • readBytes

      public static byte[] readBytes(ObjectInput input) throws IOException
      Throws:
      IOException
    • isRoot

      public static boolean isRoot(byte[] path)
    • toJsonPath

      public static byte[] toJsonPath(byte[] path)
      Returns a jsonpath version of path
      Returns:
      path itself if path is already in Jsonpath format or the jsonpath equivalent in a new byte[]
    • isJsonPath

      public static boolean isJsonPath(byte[] path)
    • isJsonPath

      public static boolean isJsonPath(String path)
    • isValueInvalid

      public static boolean isValueInvalid(byte[] value)