CANopen example with Dokuwiki and JSON Data Plugin

Generate json database within this dokuwiki page.

ds301_profile is a dokuwiki (txt) file in a correct json format. It contains all information from https://github.com/CANopenNode/CANopenNode/tree/master/example. Load here as “JSON original”.

Add “JSON inline” as a patch. It will recursively replace overlapped original data. Result is in “JSON combined”.

Data is combined with single php function https://www.php.net/array_replace_recursive.

null
{
    "objects": {
        "1000": {
            "subObjects": {
                "00": {
                    "defaultValue": "0x000F0191"
                }
            }
        }
    }
}
  • element: json, path: , inline data, external data (from path: )

Those two example pages are public editable.