Add JSONValidate function

Description

Add a JSONValidate function with the same or similar syntax to the XmlValidate function ( http://docs.lucee.org/reference/functions/xmlvalidate.html ).

The function would take a JSON document and a JSON schema and validate the document against the schema. The function should return a structure containing:

  • Errors

  • Status

  • Warning

or similar appropriate elements.

The JSON schema documentation can be found here:

http://json-schema.org/

Attachments

1

Activity

Zac Spitzer 
25 May 2020 at 20:42

We'll need to include that extension manually in docs so it appears

Andrew Dixon 
25 May 2020 at 20:17

Ok, then I agree the naming and description are confusing, unless the plan is to move all JSON functions to the extension.

Zac Spitzer 
25 May 2020 at 20:11

just ValidateJson

Andrew Dixon 
25 May 2020 at 20:05

- On https://download.lucee.org/ the extension is described as "JSON functions" so is this just the validate function or ALL JSON functions?

Zac Spitzer 
25 May 2020 at 18:10
(edited)

the extension name, description is a bit vague, user might assume it’s needed for standard json functions, like the image extension

also the lex contains json-extension.fld twice in the same folder

Fixed

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 8 February 2017 at 21:05
Updated 8 January 2025 at 10:22
Resolved 25 May 2020 at 16:33