Add JSON as field-type
Closed this issue · 3 comments
joakimrapp commented
If client should, for example, post an array it would be nice to have the type "json" as a field-type. If that is to wide, "array", "intarray" or maybe something more descriptive.
joakimrapp commented
why not "application/vnd.siren+json"
kevinswiber commented
Hi @joakimrapp!
The field types are meant to be serialized by the action type itself. The encoding type on the action would determine JSON, XML, or something different as a full-payload encoding type.
If you wanted a field to map to JSON, you may want to consider using the "text" input field type or using a custom encoding type with rules that make sense for your situation.
kevinswiber commented
@joakimrapp Closing for now. Please re-open if this is still an issue. Cheers.