Framework setting for the automatic deserialization of JSON payloads to the RC

Description

ColdBox v5.1 introduced an automatic deserialization of posted JSON payloads in to the RC scope (COLDBOX-682). For backwards compatibility it would be great if there was a framework setting to turn that off. It also stops apps that are poorly architected from mixing URL, FORM, and JSON similarly named keys.

Activity

Show:
Luis Majano
June 29, 2018, 4:15 PM

Can you help me get a name going for the setting?

  • coldbox.jsonPayloadsToRC

  • coldbox.jsonDeserializerToRC

Evagoras Charalambous
July 2, 2018, 8:52 AM
Edited

I like `coldbox.jsonPayloadsToRC`.

Or you could use the value as the place to store it, like:

  1. `coldbox.jsonPayloadsLocation = "rc"` - default.

  2. `coldbox.jsonPayloadsLocation = null` - no deserialization.

  3. `coldbox.jsonPayloadsLocation = "rc.somePayload"` - custom var.
    Perhaps that's taking it a step too far though

Assignee

Luis Majano

Reporter

Evagoras Charalambous

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure