Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello all community developers,

what i need i want to convert specifically format json to html:

and format is:
{ "document": 
{ "@pageCount": "1", "@pageCountWithOCRPerformed": "0", "page": { "@index": "0", "@OCRWasPerformed": "False", "row": [ { "column": [ { "text": "" }, { "text": "" }, { "text": "" }, { "text": { "@fontName": "Helvetica", "@fontSize": "24.0", "@fontStyle": "Bold", "@color": "#FFFFFF", "@x": "1578.85", "@y": "981.08", "@width": "24.54", "@height": "12.07", "#text": "1" } },......

please guide me it is urgent

thanks

What I have tried:

i already have tried $getJson but is so much difficult for me to convert all this complex json code to html
Posted
Updated 6-Aug-21 10:14am
v2

1 solution

JSON and HTML are very different things: there is no way to "translate" between them.
JSON is a form of data storage, it's used to transfer information between two applications.
HTML is a markup language which describes how things should be presented to the user.

The two aren't related, so translating them is like trying to translate the contents of your pocket to a movie script!

I would suggest that you need to look at the data and work out what exactly you want to do with it and how it should be presented to the user, rather than deciding "I want HTML" and assuming that that is the only option...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900