Fixes #13 - JSON conversion now only for dirty models