Class JSONFactoryImpl

Object
com.liferay.portal.json.JSONFactoryImpl
All Implemented Interfaces:
com.liferay.portal.kernel.json.JSONFactory

public class JSONFactoryImpl extends Object implements com.liferay.portal.kernel.json.JSONFactory
Author:
Brian Wing Shun Chan
  • Constructor Details

    • JSONFactoryImpl

      public JSONFactoryImpl()
  • Method Details

    • convertJSONMLArrayToXML

      public String convertJSONMLArrayToXML(String jsonml)
      Specified by:
      convertJSONMLArrayToXML in interface com.liferay.portal.kernel.json.JSONFactory
    • convertJSONMLObjectToXML

      public String convertJSONMLObjectToXML(String jsonml)
      Specified by:
      convertJSONMLObjectToXML in interface com.liferay.portal.kernel.json.JSONFactory
    • convertXMLtoJSONMLArray

      public String convertXMLtoJSONMLArray(String xml)
      Specified by:
      convertXMLtoJSONMLArray in interface com.liferay.portal.kernel.json.JSONFactory
    • convertXMLtoJSONMLObject

      public String convertXMLtoJSONMLObject(String xml)
      Specified by:
      convertXMLtoJSONMLObject in interface com.liferay.portal.kernel.json.JSONFactory
    • createJavaScriptNormalizerJSONTransformer

      public com.liferay.portal.kernel.json.JSONTransformer createJavaScriptNormalizerJSONTransformer(List<String> javaScriptAttributes)
      Specified by:
      createJavaScriptNormalizerJSONTransformer in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONArray

      public com.liferay.portal.kernel.json.JSONArray createJSONArray()
      Specified by:
      createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONArray

      public com.liferay.portal.kernel.json.JSONArray createJSONArray(Collection<?> collection)
      Specified by:
      createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONArray

      public com.liferay.portal.kernel.json.JSONArray createJSONArray(String json) throws com.liferay.portal.kernel.json.JSONException
      Specified by:
      createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
      Throws:
      com.liferay.portal.kernel.json.JSONException
    • createJSONArray

      public <T> com.liferay.portal.kernel.json.JSONArray createJSONArray(T[] array)
      Specified by:
      createJSONArray in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONDeserializer

      public <T> com.liferay.portal.kernel.json.JSONDeserializer<T> createJSONDeserializer()
      Specified by:
      createJSONDeserializer in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONObject

      public com.liferay.portal.kernel.json.JSONObject createJSONObject()
      Specified by:
      createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONObject

      public com.liferay.portal.kernel.json.JSONObject createJSONObject(Map<?,?> map)
      Specified by:
      createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
    • createJSONObject

      public com.liferay.portal.kernel.json.JSONObject createJSONObject(String json) throws com.liferay.portal.kernel.json.JSONException
      Specified by:
      createJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
      Throws:
      com.liferay.portal.kernel.json.JSONException
    • createJSONSerializer

      public com.liferay.portal.kernel.json.JSONSerializer createJSONSerializer()
      Specified by:
      createJSONSerializer in interface com.liferay.portal.kernel.json.JSONFactory
    • deserialize

      public Object deserialize(com.liferay.portal.kernel.json.JSONObject jsonObject)
      Specified by:
      deserialize in interface com.liferay.portal.kernel.json.JSONFactory
    • deserialize

      public Object deserialize(String json)
      Specified by:
      deserialize in interface com.liferay.portal.kernel.json.JSONFactory
    • getLiferayJSONDeserializationWhitelist

      public LiferayJSONDeserializationWhitelist getLiferayJSONDeserializationWhitelist()
    • getNullJSON

      public String getNullJSON()
      Specified by:
      getNullJSON in interface com.liferay.portal.kernel.json.JSONFactory
    • getUnmodifiableJSONObject

      public com.liferay.portal.kernel.json.JSONObject getUnmodifiableJSONObject()
      Specified by:
      getUnmodifiableJSONObject in interface com.liferay.portal.kernel.json.JSONFactory
    • looseDeserialize

      public Object looseDeserialize(String json)
      Specified by:
      looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactory
    • looseDeserialize

      public <T> T looseDeserialize(String json, Class<T> clazz)
      Specified by:
      looseDeserialize in interface com.liferay.portal.kernel.json.JSONFactory
    • looseSerialize

      public String looseSerialize(Object object)
      Specified by:
      looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory
    • looseSerialize

      public String looseSerialize(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz)
      Specified by:
      looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory
    • looseSerialize

      public String looseSerialize(Object object, String... includes)
      Specified by:
      looseSerialize in interface com.liferay.portal.kernel.json.JSONFactory
    • looseSerializeDeep

      public String looseSerializeDeep(Object object)
      Specified by:
      looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactory
    • looseSerializeDeep

      public String looseSerializeDeep(Object object, com.liferay.portal.kernel.json.JSONTransformer jsonTransformer, Class<?> clazz)
      Specified by:
      looseSerializeDeep in interface com.liferay.portal.kernel.json.JSONFactory
    • serialize

      public String serialize(Object object)
      Specified by:
      serialize in interface com.liferay.portal.kernel.json.JSONFactory
    • serializeThrowable

      public String serializeThrowable(Throwable throwable)
      Specified by:
      serializeThrowable in interface com.liferay.portal.kernel.json.JSONFactory