Apache Sling Content Parser for JSON

Clone this repo:
  1. 2d1f641 cosmetic: simplify code using Java 11 Set.of feature by Stefan Seifert · 2 weeks ago master
  2. d32e6ad cosmetic: simplify code using Java 11 Set.of feature by Stefan Seifert · 2 weeks ago
  3. 9fe9dc9 [maven-release-plugin] prepare for next development iteration by Stefan Seifert · 2 weeks ago
  4. 31cb690 [maven-release-plugin] prepare release org.apache.sling.contentparser.json-2.1.0 by Stefan Seifert · 2 weeks ago org.apache.sling.contentparser.json-2.1.0
  5. 4603719 SLING-12282 Update Dependencies to 2023 (#4) by Stefan Seifert · 2 weeks ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central contentparser License

Apache Sling Content Parser for JSON

This module is part of the Apache Sling project.

The Apache Sling Content Parser for JSON provides support for parsing JSON files into Apache Sling resource trees, by implementing the API provided by the org.apache.sling.contentparser.api bundle.

To obtain a reference to the JSON content parser just filter on the ContentParser.SERVICE_PROPERTY_CONTENT_TYPE service registration property:

    @Reference(target = "(" + ContentParser.SERVICE_PROPERTY_CONTENT_TYPE + "=json)")
    private ContentParser jsonParser;