Json saving supports locking