IBM Security Resilient

Expand all | Collapse all

JSON2HTML function HTML table

  • 1.  JSON2HTML function HTML table

    Posted Fri January 24, 2020 01:10 PM
    Hello,

    I am using JSON2HTML function to generate an HTML table to display, The html table is correctly generated from the JSON input but I can't display the generated html code in a RichText field in Resilient the html <table> tags are stripped. 

    Is there a way to generate and display an HTML table from JSON file. I am looking for this functionnality in order to display process execution tree in a HTML table in Resilient.

    Thank you 

    Best Regards,

    Pawlos TADESSE

    ------------------------------
    Pawlos TADESSE
    ------------------------------


  • 2.  RE: JSON2HTML function HTML table

    Posted Thu January 30, 2020 05:18 AM
    Pawlos,

    This is a limitation of the rich text editor we use. A new version of this editor will support tables. I'd recommend that you create a request for enhancement so we can track this request: https://2e4ccba981d63ef83a875dad7396c9a0.ideas.aha.io/ideas.

    Thank you.


    ------------------------------
    Mark Scherfling
    ------------------------------



  • 3.  RE: JSON2HTML function HTML table

    Posted Tue February 04, 2020 09:56 AM
    Hey @Pawlos TADESSE,

    I proposed this idea here back in February, so yours will likely be merged with that one (which was also merged with a more general one).

    An existing ability would be to create a Resilient table in the UI for your function to use and then load the JSON into it via post-processor (if the keys are the same each time). See here for an example of the post-processor working with a JSON created from a CSV:
    https://github.com/jjfallete/resilient/blob/master/workflow%20processor%20scripts/CSV%20Table%20Build%20%7C%20Post-Processor.py


    ------------------------------
    Jared Fagel
    Cyber Security Analyst I
    Public Utility
    ------------------------------