JSON parsing & text generation is now enum-identifier aware.
When Parsing JSON, it will read enums either as int values, identifiers
specific to the enum type, or strings containing those identifiers.
When generating text, it will output enum identifiers by default
(this can be turned off in favor of integers, like before).
Change-Id: If28b0a1f8f27de79aff3e626f40c0c0b271c325a
Tested: on Windows and Linux
Bug: 16214968
diff --git a/tests/monsterdata_test.golden b/tests/monsterdata_test.golden
index 26d5304..c905fe4 100644
--- a/tests/monsterdata_test.golden
+++ b/tests/monsterdata_test.golden
@@ -19,7 +19,7 @@
3,
4
],
- test_type: 1,
+ test_type: Monster,
test: {
hp: 20
},