Function To Pass 3 URLS one after the other

Function To Pass 3 URLS one after the other

Hi There,

I'm new to JQuery & JSON. Below is my code.

<body>
<h1 id="title"></h1>
<script type="text/javascript" language="javascript">
$.getJSON("http://localhost:8090/wflow-wfweb/web/json/workflow/process/start/mdec_eforms%232%23apply_leave_form?j_username=andrew&j_password=password&format=json&jsoncallback=?",
        function(json){       
         $("#title").html(json.activityId);
        });
</script>
</body>

If I copy paste the url, i get the following JSON data.
{"activityId":"810_810_mdec_eforms_apply_leave_form_apply_leave_form_act1","processId":"810_mdec_eforms_apply_leave_form"}
But the function doesn't work, meaning it doesn't output anything. Can you tell me where I went wrong?
I used Flickr as my example which worked.

<body>
<h1 id="title"></h1>
<script type="text/javascript" language="javascript">
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
        function(data){       
         $("#title").html(data.title);
  $("#link").html("<a href='"+data.link+"' target=\"_blank\" style=\"color:#000000\">Visit the Viget Inspiration Pool!</a>");
        });
</script>
</body>

Basically what I need to do is:-
a) pass 1st URL. get 'activityId' value
http://localhost:8090/wflow-wfweb/web/json/workflow/process/start/mdec_eforms%232%23apply_leave_form?j_username=andrew&j_password=password

b) pass 2nd URL with 'activityId' value
http://localhost:8090/wflow-wfweb/web/json/workflow/assignment/accept/502_502_mdec_eforms_apply_leave_form_apply_leave_form_act1?j_username=andrew&j_password=password

c) pass 3rd URL with 'activityId' value
http://localhost:8090/wflow-wfweb/web/json/workflow/assignment/completeWithVariable/502_502_mdec_eforms_apply_leave_form_apply_leave_form_act1?j_username=andrew&j_password=password


Could you tell how to go about doing it?
Thanks so much! Your help is very much appreciated.