Fixed unions not being parsed correctly in JSON.
authorWouter van Oortmerssen <aardappel@gmail.com>
Wed, 18 Jan 2017 20:02:31 +0000 (12:02 -0800)
committerWouter van Oortmerssen <aardappel@gmail.com>
Wed, 18 Jan 2017 22:54:16 +0000 (14:54 -0800)
commiteac2905568ec764f2d6fb0864ff95acec419d163
treedebb9b4de2032052a8d6e937b14857011ccb03ba
parent19101826a80b415680738cf3722ee02a0b0c8565
Fixed unions not being parsed correctly in JSON.

This would happen if they were supplied in an order that does not match
the schema relative to other fields. It now supports any ordering.

Change-Id: I9d309cd4e6e5c470f01d9d431806eba4f9f46559
Tested: on Linux.
src/idl_parser.cpp