org.compass.core.json
Interface JsonArray

All Known Implementing Classes:
DefaultJSONArray, GrailsJSONArray, JacksonJsonArray, JettisonJSONArray

public interface JsonArray

A generifc interface on top of a Json array.

Author:
kimchy

Method Summary
 boolean isNull(int index)
          Returns true if the given index is a null value.
 int length()
          Return the length of the array.
 Object opt(int index)
          Returns the value for the given index.
 

Method Detail

length

int length()
Return the length of the array.


isNull

boolean isNull(int index)
Returns true if the given index is a null value.


opt

Object opt(int index)
Returns the value for the given index.



Copyright (c) 2004-2009 The Compass Project.