dump json properly in mocks