Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.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 } )

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>")

Example Databases

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


JSON.SetPathItem   -   Java.CallObjectMethod

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins