Write a generic AdapterFactory that can convert a Resource into a JSONObject

Description

ResourceToJsonAdapter implements org.apache.sling.api.adapter.AdapterFactory

The "adaptables" property should be set to "org.apache.sling.api.resource.Resource".

The "adapters" property should be set to "javax.json.JsonObject".

An example of an adapter is SlingScriptAdapterFactory.java.

Environment

None

Status

Assignee

Bruce He

Reporter

Sergiu Dumitriu

Labels

None

External issue ID

None

External issue ID

None

Sprint

None

Priority

Medium