In package com.eden.orchid.api.resources.resource

public final class JsonResource extends OrchidResource

public final

A Resource type that provides a JSON data as content to a template. When used with renderTemplate() or renderString(), this resource will supply additional data to the template renderer. When used with renderRaw(), the raw JSON-encoded data will be written directly instead.


JsonResource(JSONElement element, OrchidReference reference) public