Class JsonUtil


  • public class JsonUtil
    extends Object
    Utilities for JSON manipulation.
    Author:
    Pedro Igor
    • Constructor Detail

      • JsonUtil

        public JsonUtil()
    • Method Detail

      • toAttributes

        public static Attributes toAttributes​(javax.json.JsonObject claims)
        Returns a Attributes instance based on the given JsonObject.
        Parameters:
        claims - a json object with the claims to extract
        Returns:
        an Attributes instance with attributes from the given json object
      • asString

        private static String asString​(javax.json.JsonValue value)