Revert "Relaxed json encoding and decoding"

This reverts commit 9872b0f0bb3e66d25833af89f53aec5437b5422c.