spa-json: always advance to the end of the nested array/object

Merged Julian Bouzas requested to merge julian/wireplumber:spa-json-nested-size-fix into master

Fixes size issue with nested objects when they are the last property value of the parent object. See unit test for example.

Merge request reports