$(function($) { $.post( 'http://172.21.45.52:4000/graphql/', {"operationName":null,"variables":{},"query":"{\n actions {\n id\n name\n }\n}\n"}, function(o){ console.log(JSON.stringify(o)); } ); });