You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if multi-part (paged) content could be specified via an array syntax.
My proposal looks like:
content[]:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tincidunt convallis leo, vitae hendrerit ipsum euismod et.
Sed sem augue, ornare eu interdum id, semper sit amet leo. Nullam a accumsan velit. Mauris sed lacus eleifend, rhoncus dui ultricies, mollis libero.
----
content[]:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tincidunt convallis leo, vitae hendrerit ipsum euismod et.
Sed sem augue, ornare eu interdum id, semper sit amet leo. Nullam a accumsan velit. Mauris sed lacus eleifend, rhoncus dui ultricies, mollis libero.
In the parsing stage, keys that match
/\[\]$/
can be added to JSON with Array.push().
In the serialization stage, if the object is an array but matches the above pattern, it's serialized as a series of plain text fields.
I'm not sure if this is more appropriate at the smarkt level, or should be delegated to when you process the JSON (e.g. through a delimiter inside the plain text field)
The text was updated successfully, but these errors were encountered:
I came to realize this may be a bit overwrought; in my own research, I think I'll go with a different approach (still at the idea phase, fleshing out the implications).
It would be great if multi-part (paged) content could be specified via an array syntax.
My proposal looks like:
In the parsing stage, keys that match
/\[\]$/
can be added to JSON with
Array.push()
.In the serialization stage, if the object is an array but matches the above pattern, it's serialized as a series of plain text fields.
I'm not sure if this is more appropriate at the
smarkt
level, or should be delegated to when you process the JSON (e.g. through a delimiter inside the plain text field)The text was updated successfully, but these errors were encountered: