Convert empty to null for json

- Empty -> null for json
- Add specs for Empty -> null
- Add specs for Array body handling

Fixes #40