sending graph json to layouts api