Original MarshalJSON() method did not encode the raw-values as a tnv type which caused error upon unmarshaling. This commit adds this functionality and makes marshaling and unmarshaling symmetric
It also adds a round trip JSON Marshal and UnMarshal test for the raw values (a test that would have failed using the previous MarshalJSON method but passes with the corrected version)
Original MarshalJSON() method did not encode the raw-values as a tnv type which caused error upon unmarshaling. This commit adds this functionality and makes marshaling and unmarshaling symmetric
It also adds a round trip JSON Marshal and UnMarshal test for the raw values (a test that would have failed using the previous MarshalJSON method but passes with the corrected version)