[Development] Validating JSON with schema?
Leandro T. C. Melo
ltcmelo at gmail.com
Fri Sep 13 23:51:02 CEST 2013
On Fri, Sep 13, 2013 at 11:00 PM, <achartier at fastmail.fm> wrote:
> Hello,
>
> I am wondering if there are any plans to support the validation of JSON
> data in Qt using a JSON schema. Qt supports the validation of XML using
> an XML schema with QtXmlPatterns (example:
> http://qt-project.org/doc/qt-4.8/xmlpatterns-schema.html). What is the
> likelihood that we will see similar functionality for JSON in the near
> future?
>
Hi,
in the case you're interested on code, I implemented a partially compliant
JSON validator for Qt Creator a while ago (there's wasn't actually a
standardised specification back then, only the draft - I'm not sure what's
the state now). The code might not be that easily extracted though because
it relied on the QML/JS model components.
Originally this was not a documented feature, but if no one has done work
in the area I'd guess it's still there.
--
Leandro
http://www.ltcmelo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130913/6eb53e1b/attachment.html>
More information about the Development
mailing list