Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  

JSON.ToHTML

Converts JSON to HTML.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 8.2 Yes Yes Yes Yes Yes
MBS( "JSON.ToHTML"; json { ; Flags; CSS Style } )   More

Parameters

Parameter Description Example value
json A JSON text or reference. {"key":"value"}
Flags Optional
The flags for processing.
Currently you can pass 1 to exclude html header and just get a HTML table.
0
CSS Style Optional
Extra CSS / HTML to include.

Result

Returns HTML text or error.

Description

Converts JSON to HTML.
We build for you a HTML with tables for each array and object. We include values and tag rows with even/odd CSS classes.

Examples

Convert some JSON:

MBS("JSON.ToHTML"; JSON Input; 0;
/* CSS style to include */
"<style>
td
{
    vertical-align:top;
}

.odd
{
    background-color: white;
}

.even
{
    background-color: #DDD;
}
</style>")

See also

Example Databases

Blog Entries

Release notes

Created 26th April 2018, last changed 26th April 2018


JSON.SortWithEvaluate   -   JSON.ToXML

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins