Package org.json

Annotation Type JSONPropertyName


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface JSONPropertyName
    Use this annotation on a getter method to override the Bean name parser for Bean -> JSONObject mapping. A value set to empty string "" will have the Bean parser fall back to the default field name processing.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value
        Returns:
        The name of the property as to be used in the JSON Object.