diff options
Diffstat (limited to 'source/core/StarJsonParser.hpp')
-rw-r--r-- | source/core/StarJsonParser.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/core/StarJsonParser.hpp b/source/core/StarJsonParser.hpp index 91d93bb..c7a9cc6 100644 --- a/source/core/StarJsonParser.hpp +++ b/source/core/StarJsonParser.hpp @@ -521,11 +521,12 @@ public: } void endObject() { + if (currentState() == ObjectElement) { + if (m_pretty) + write('\n'); + indent(); + } popState(Object); - - if (m_pretty) - write('\n'); - indent(); write('}'); } |