... so if it exists and is set to false, that would be fine by that rule, no?
The JSON implementation I'm using allows you to check if a property exists, so you can do this to see if a vector value is the simplified 0 form or a proper vector with two explicitly specified x,y values.
Code: Select all
JSONObject vecValue = ...; if ( ! vecValue.has("x") ) ... value is 0,0 ... else ... value is explicit ...
In the interest of making the file a bit smaller though, you have a point. I'm not too excited about completely omitting values for 0,0 altogether as it breaks compatibility for older versions (and the free version) of RUBE, for only a little gain.