support for POST requests of content-type application/json
This is a companion to https://github.com/civicrm/civicrm-core/pull/30678, which adds the support for POST requests of type application/json in core.
application/json
is very convenient with, e.g., Form Processor, because you can pass arrays in JSON. With url-encoding, you can pass a string like [1,2,3,4]
, which adds an additional step for each field that can take an array.
There's no real harm in merging this now, but it makes the most sense IMO to wait until the upstream patch is merged.