Class JSONObjectConvertor

java.lang.Object
org.eclipse.jetty.util.ajax.JSONObjectConvertor
All Implemented Interfaces:
JSON.Convertor

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

    • JSONObjectConvertor

      public JSONObjectConvertor()
    • JSONObjectConvertor

      public JSONObjectConvertor(boolean fromJSON)
    • JSONObjectConvertor

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