fix json renderer for empty object and empty arrays
extract method
Merge pull request #95 from wajam/fx-fix-json-render

Fix json rendering for empty object and list