This is the input i received and need to parse it into JSON format using JSON Array in it.
Code:
CREATE LASTCHILD OF OutputRoot DOMAIN 'JSON';
CREATE FIELD OutputRoot.JSON.Data.Details.HCRTable IDENTITY (JSON.Array) HCRTable;
SET OutputRoot.JSON.Data.Details.HCRTable.Item[1].HCRTable1=InputRoot.XMLNSC.Details.HCRTable.HCRTable1;
SET OutputRoot.JSON.Data.Details.HCRTable.Item[2].HCRTable2=InputRoot.XMLNSC.Details.HCRTable.HCRTable2;
This is the input i received and need to parse it into JSON format using JSON Array in it.
Code:
CREATE LASTCHILD OF OutputRoot DOMAIN 'JSON';
CREATE FIELD OutputRoot.JSON.Data.Details.HCRTable IDENTITY (JSON.Array) HCRTable;
SET OutputRoot.JSON.Data.Details.HCRTable.Item[1].HCRTable1=InputRoot.XMLNSC.Details.HCRTable.HCRTable1;
SET OutputRoot.JSON.Data.Details.HCRTable.Item[2].HCRTable2=InputRoot.XMLNSC.Details.HCRTable.HCRTable2;
Please help me if i did mistake in my code.
Thanks in Advance.
Regards,
Android23
Your problem is your code. It should look like this:
Code:
CREATE LASTCHILD OF OutputRoot DOMAIN 'JSON';
CREATE FIELD OutputRoot.JSON.Data.Details.HCRTable IDENTITY (JSON.Array) HCRTable;
SET OutputRoot.JSON.Data.Details.HCRTable.Item[1].HCRTable1=InputRoot.XMLNSC.Details.HCRTable[1].HCRTable1;
SET OutputRoot.JSON.Data.Details.HCRTable.Item[2].HCRTable2=InputRoot.XMLNSC.Details.HCRTable[2].HCRTable2;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum