Added JSON structural tests and decoding