Class JSONObjectKt

  • All Implemented Interfaces:

    
    public final class JSONObjectKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T to(JSONObject $self, JSONReader.Feature features) E.g.
      final static <T extends Any> T to(JSONObject $self, String key, JSONReader.Feature features) E.g.
      final static <T extends Any> T into(JSONObject $self, JSONReader.Feature features) Implemented using TypeReferenceE.g.
      final static <T extends Any> T into(JSONObject $self, String key, JSONReader.Feature features) Implemented using TypeReferenceE.g.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • to

         final static <T extends Any> T to(JSONObject $self, JSONReader.Feature features)

        E.g.

        val data = "...".parseObject()
        val user = data.to<User>()
        Returns:

        T?

        Since:

        2.0.3

      • to

         final static <T extends Any> T to(JSONObject $self, String key, JSONReader.Feature features)

        E.g.

        // JSONObject
         val data = "...".parseObject()
         val user = data.to<User>("key")
        Returns:

        T?

        Since:

        2.0.4

      • into

         final static <T extends Any> T into(JSONObject $self, JSONReader.Feature features)

        Implemented using TypeReference

        E.g.

        val data = "...".parseObject()
        val user = data.into<User>()
        Returns:

        T?

        Since:

        2.0.4

      • into

         final static <T extends Any> T into(JSONObject $self, String key, JSONReader.Feature features)

        Implemented using TypeReference

        E.g.

        val data = "...".parseObject()
        val users = data.into<List<User>>("key")
        Returns:

        T?

        Since:

        2.0.4