How to map two strings using java
<p>I have two strings 
Listing1(one in html format)</p>

<pre><code>&lt;ul&gt;
    &lt;li id="1"&gt;&lt;/li&gt;
    &lt;li id="2"&gt;&lt;/li&gt;
    &lt;li id="3"&gt;&lt;/li&gt;
    &lt;li id="4"&gt;&lt;/li&gt;
    &lt;li id="5"&gt;&lt;/li&gt;
    &lt;li id="6"&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>Listing2(one in json format)</p>

<pre>
{1:"r1",4:"r2"}
</pre>

<p>I need to fill the html string with the json data provided in listing 2 based on json key and id in html.
Can any one help me to solve this issue.</p>

<p>Thanks
Jineesh</p>
