fixed JSON serialization for whole scene objects