JsonTree.js - Example - No Colors

This is an example of a basic setup showing styled JSON, but with colors.

Download Now

v0.8.0 - 20th Mar 2024
Code
                                    function bindingOptions() {
                                        return {
                                            showValueColors: false,
                                            data: {
                                                value1: true,
                                                value2: "This is a string",
                                                value3: new Date(),
                                                value4: 5,
                                                value7: null,
                                                value8: function() {
                                                    // Does nothing
                                                },
                                                value9: 3.1415926535,
                                                value5: [
                                                    true,
                                                    "This is another string",
                                                    {
                                                        arrayValue1: true,
                                                        arrayValue2: 10
                                                    },
                                                    [
                                                        false,
                                                        true,
                                                        5,
                                                        10,
                                                        new Date()
                                                    ]
                                                ],
                                                value6: {
                                                    objectValue1: false,
                                                    objectValue2: "This is a new string",
                                                    objectValue3: 20
                                                }
                                            }
                                        }
                                    }