Re: [PATCH 5/6] virjson: Make pretty format more compact

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 05, 2016 at 09:11:54 +0200, Peter Krempa wrote:
> On Wed, May 04, 2016 at 17:09:51 +0200, Jiri Denemark wrote:
> > json_reformat uses two spaces for when indenting nested objects, let's
> > do the same. The result of virJSONValueToString will be exactly the same
> > as json_reformat would produce.
> > 
> > Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> > ---
> 
> I guess it's good to have an external tool doing the same formatting as
> libvirt.

Yes, you can just update any json manually, filter it through
json_reformat and our tests which produce json strings and compare them
to the expected string will just be happy with it.

I pushed this series, thanks for the review.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]