Open jonaseberle opened 7 months ago
We need to get bool/int/string/array in PHP to correctly save it as .yaml.
The HTTP transfer is encoded as multipart/form-data (because PHP does not understand JSON natively).
multipart/form-data
Currently that leads to only string/array.
Idea: We could send a JSON string via multipart/form-data and json_decode() the whole thing once in PHP.
json_decode()
Couldn't we use application/json instead? With this, we could send booleans directly.
application/json
We need to get bool/int/string/array in PHP to correctly save it as .yaml.
The HTTP transfer is encoded as
multipart/form-data
(because PHP does not understand JSON natively).Currently that leads to only string/array.
Idea: We could send a JSON string via
multipart/form-data
andjson_decode()
the whole thing once in PHP.