[nama] Re: JSON: (was Re: Re: Singleton branch passes all tests)

  • From: Joel Roth <joelz@xxxxxxxxx>
  • To: nama@xxxxxxxxxxxxx
  • Date: Tue, 13 Sep 2011 09:35:41 -1000

On Tue, Sep 13, 2011 at 12:32:02AM -1000, Joel Roth wrote:
> Another serialization library in the running is
> Data::Dumper::Concise, which outputs pretty perl code, and can even
> output the deparsed code of anonymous subroutines.

This output is reasonably easy to read, and the keys are output 
in sorted order.

nama> eval use Data::Dumper::Concise; say Dumper $config->{devices}
{
  consumer => {
    ecasound_id => "alsa,default",
    hardware_latency => 0,
    input_format => "s16_le,2,44100,i",
    output_format => "s16_le,2,44100,i"
  },
  jack => {
    signal_format => "f32_le,N,44100"
  },
  multi => {
    ecasound_id => "alsa,ice1712",
    input_format => "s32_le,12,44100",
    output_format => "s32_le,10,44100"
  },
  null => {
    ecasound_id => "null"
  }
}

-- 
Joel Roth

Other related posts: