changed json output to a more standard format