Ordering of parameters.

Dr Josef Karthauser joe at truespeed.com
Wed Feb 18 05:15:08 EST 2015


> It seems that the output of the parameters from the REST API isn’t deterministic, which is a bit of a drag when it comes to comparing files to see what changed.
> 
> I’m issuing the command:
> 
> curl "http://127.0.10.251:7557/devices/?query=%7B%22_id%22%3A%22000F5D-Tundra-000F9453E910%22%7D <http://127.0.10.251:7557/devices/?query=%7B%22_id%22%3A%22000F5D-Tundra-000F9453E910%22%7D>" 
> 
> and I’m getting the lists in different orders every time I run it. :(
> 
> Is there an easy fix?

It’s ok. I’ve found an external json pretty print tool which can order the keys to produce a canonical output.

Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150218/c774317a/attachment.html>


More information about the Users mailing list