fixed json output to comply with visualization