spa-json: always advance to the end of the nested array/object
Fixes size issue with nested objects when they are the last property value of the parent object. See unit test for example.
Fixes size issue with nested objects when they are the last property value of the parent object. See unit test for example.