Package sc.util

Class JSON


  • public class JSON
    extends java.lang.Object
    Lightweight JSON formatter and parser built on the sc framework, supporting dynamic properties and types.
    • Constructor Summary

      Constructors 
      Constructor Description
      JSON()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object convertTo​(java.lang.Object propertyType, java.lang.Object value, JSONResolver resolver)  
      static java.lang.Object parseJSON​(java.lang.Object propertyType, java.lang.String jsonStr, JSONResolver resolver)  
      static java.lang.StringBuilder toJSON​(java.lang.Object o, java.lang.Object ptype, IValueReplacer replacer)  
      static java.lang.Object toObject​(java.lang.Object propertyType, java.lang.String jsonStr, JSONResolver resolver)  
      • Methods inherited from class java.lang.Object

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

      • JSON

        public JSON()
    • Method Detail

      • parseJSON

        public static java.lang.Object parseJSON​(java.lang.Object propertyType,
                                                 java.lang.String jsonStr,
                                                 JSONResolver resolver)
      • toObject

        public static java.lang.Object toObject​(java.lang.Object propertyType,
                                                java.lang.String jsonStr,
                                                JSONResolver resolver)
      • convertTo

        public static java.lang.Object convertTo​(java.lang.Object propertyType,
                                                 java.lang.Object value,
                                                 JSONResolver resolver)
      • toJSON

        public static java.lang.StringBuilder toJSON​(java.lang.Object o,
                                                     java.lang.Object ptype,
                                                     IValueReplacer replacer)