JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

JadeJSON improvement - allow for reserved JADE property names

We have encountered problems when parsing a JSON file where the property names clash with JADE reserved names (eg. "edition" or "system"). Would it be possible to have add a standard modifier on a reserved name (e.g. edition_ ) and still allow the JSON file to be parsed correctly?

  • Guest
  • Dec 8 2023
  • Needs review
  • Attach files
  • Hugh Mercer-Beumelburg commented
    06 Nov 03:09

    This functionality is also available for REST services. Just set the parameter type of your REST method to a JadeJsonObject. You can find more information about using the feature in REST in Chapter 11 of the developers reference on building web services: https://secure.jadeworld.com/developer-centre/Jade2022/OnlineDocumentation/?__hstc=263335187.47d96ef7768c00ce46f1026ec4e0fe55.1730861617105.1730861617105.1730861617105.1&__hssc=263335187.1.1730861617105&__hsfp=1977143985#resources/devref/ch11webserviceapps/chapter_11_-_building_web_service_applications.htm?TocPath=Product%2520Information%257CDeveloper's%2520Reference%257CChapter%252011%25C2%25A0%25C2%25A0%25C2%25A0%25C2%25A0Building%2520Web%2520Service%2520Applications%257C_____0

  • Hugh Mercer-Beumelburg commented
    06 Nov 03:08

    Hi,

    Our recommended approach for any situation where incoming JSON data can't be directly transformed to a JADE object is to use the new Dynamic Parsing feature introduced in JADE 2022 SP3: https://secure.jadeworld.com/developer-centre/Jade2022/OnlineDocumentation/?__hstc=263335187.47d96ef7768c00ce46f1026ec4e0fe55.1730861617105.1730861617105.1730861617105.1&__hssc=263335187.1.1730861617105&__hsfp=1977143985#resources/encyclosys1/jadejson_class/parsedynamic.htm

    This feature allows you to ingest any valid JSON without restrictions as a temporary navigable and modifiable data structure within JADE. You are then free to clean or modify the data as you wish and transform it into a JADE object for permanent storage.

  • Murray Symon commented
    December 08, 2023 04:09

    This would be a problem with a JSON string from an external source that is not aware of Jade reserved words.