Class JsonItemWriter
java.lang.Object
org.apache.sling.commons.json.jcr.JsonItemWriter
- Direct Known Subclasses:
TidyJsonItemWriter
Deprecated.
Dumps JCR Items as JSON data. The dump methods are threadsafe.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJsonItemWriter(Set<String> propertyNamesToIgnore) Deprecated.Create a JsonItemWriter -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(NodeIterator it, Writer out) Deprecated.Dump all Nodes of given NodeIterator in JSONvoidDeprecated.Dump given node in JSON, optionally recursing into its child nodesvoidDeprecated.the tidy mode was removed from the json libraryvoidDeprecated.Dump given property in JSONstatic StringDeprecated.
-
Field Details
-
ECMA_DATE_FORMAT
Deprecated.Used to format date values- See Also:
-
DATE_FORMAT_LOCALE
Deprecated.Used to format date values
-
-
Constructor Details
-
JsonItemWriter
Deprecated.Create a JsonItemWriter- Parameters:
propertyNamesToIgnore- if not null, a property having a name from this set of values is ignored. TODO we should use a filtering interface to make the selection of which Nodes and Properties to dump more flexible.
-
-
Method Details
-
dump
Deprecated.Dump all Nodes of given NodeIterator in JSON- Throws:
JSONExceptionRepositoryException
-
dump
public void dump(Node node, Writer w, int maxRecursionLevels) throws RepositoryException, JSONException Deprecated.Dump given node in JSON, optionally recursing into its child nodes- Throws:
RepositoryExceptionJSONException
-
dump
@Deprecated public void dump(Node node, Writer w, int maxRecursionLevels, boolean tidy) throws RepositoryException, JSONException Deprecated.the tidy mode was removed from the json libraryDump given node in JSON, optionally recursing into its child nodes- Parameters:
tidy- iftruethe json dump is nicely formatted- Throws:
RepositoryExceptionJSONException
-
dump
public void dump(Property p, Writer w) throws JSONException, ValueFormatException, RepositoryException Deprecated.Dump given property in JSON -
format
Deprecated.
-