Hi,
I'm using FW/1 for a REST API (json), and on some of the requests a simple 'null' should be returned.
According to this SO answer, which includes references, null as well as any other json value is valid json by itself.
SerializeJSON() supports this is well. FW/1's renderData API however does not.
I've got a change ready for review, with these additions:
- json nulls are rendered as 'null'
- html nulls are rendered as ''
- xml nulls throw FW1.UnsupportXMLRender
If you consider this a good idea, I will of course submit a PR for further review/discussion.
Thanks!
Jeroen