Class JSONArrayKt

  • All Implemented Interfaces:

    
    public final class JSONArrayKt
    
                        
    • 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(JSONArray $self) E.g.
      final static <T extends Any> T to(JSONArray $self, Integer index, JSONReader.Feature features) E.g.
      final static <T extends Any> T into(JSONArray $self) Implemented using TypeReferenceE.g.
      final static <T extends Any> T into(JSONArray $self, Integer index, JSONReader.Feature features) Implemented using TypeReferenceE.g.
      final static <T extends Any> List<T> toList(JSONArray $self, JSONReader.Feature features) E.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(JSONArray $self)

        E.g.

        val data = "...".parseArray()
        val users = data.to<Users>()
        Returns:

        T?

        Since:

        2.0.3

      • to

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

        E.g.

        val data = "...".parseArray()
        val users = data.to<User>(6)
        Returns:

        T?

        Since:

        2.0.4

      • into

         final static <T extends Any> T into(JSONArray $self)

        Implemented using TypeReference

        E.g.

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

        T?

        Since:

        2.0.3

      • into

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

        Implemented using TypeReference

        E.g.

        val data = "...".parseArray()
        val users = data.into<Map<String, User>>(6)
        Returns:

        T?

        Since:

        2.0.4

      • toList

         final static <T extends Any> List<T> toList(JSONArray $self, JSONReader.Feature features)

        E.g.

        val data = "...".parseArray()
        val user = data.toList<User>()
        Returns:

        T?

        Since:

        2.0.3