Class JSONObjectConvertor

  • All Implemented Interfaces:
    JSON.Convertor

    public class JSONObjectConvertor
    extends Object
    implements JSON.Convertor
    Convert an Object to JSON using reflection on getters methods.
    • Constructor Detail

      • JSONObjectConvertor

        public JSONObjectConvertor()
      • JSONObjectConvertor

        public JSONObjectConvertor​(boolean fromJSON)
      • JSONObjectConvertor

        public JSONObjectConvertor​(boolean fromJSON,
                                   String[] excluded)
        Parameters:
        fromJSON - true to convert from JSON
        excluded - An array of field names to exclude from the conversion