Save and load running-config in json format - ConfD-7.5.1

I am using ConfD-7.5.1. I use command 'show running-config | display json | save ’ then tried to load it ( in config node ) by 'load merge '.

I got error

f04fddc1a0ba(config)# load merge /full.json
Loading.
Error: on line 2: ]{
f04fddc1a0ba(config)#

The json file (top portion):
1
2 ]{
3 “data”: {
4
5 “tailf-aaa:aaa”: {
6 “authentication”: {
7 “users”: {
8 “user”: [
9
10 }
11 }
12 }
13 ]
14 “tailf-aaa:user”: [
15
16 “SNMP-COMMUNITY-MIB:SNMP-COMMUNITY-MIB”: {
17 “snmpCommunityTable”: {
18 }
19 }
20 “SNMP-NOTIFICATION-MIB:SNMP-NOTIFICATION-MIB”: {
21 “snmpNotifyTable”: {
22 }
23 }
24 “SNMP-TARGET-MIB:SNMP-TARGET-MIB”: {
25 “snmpTargetAddrTable”: {
26 }
27 }
28 “SNMP-USER-BASED-SM-MIB:SNMP-USER-BASED-SM-MIB”: {
29 “usmUserTable”: {
30 }
31 }
32 “SNMP-VIEW-BASED-ACM-MIB:SNMP-VIEW-BASED-ACM-MIB”: {
33 “vacmSecurityToGroupTable”: {
34 }
35 }
36 “SNMPv2-MIB:SNMPv2-MIB”: {
37 “system”: {
38 “sysContact”: “”,
39 “sysName”: “”,
40 “sysLocation”: “”
41 },
42 “snmp”: {
43 “snmpEnableAuthenTraps”: “disabled”
44 }
45 }
46 “tailf-webui:webui”: {
47 “schematics”: {
48 “panels”: {
49 }
50 }
51 }

In the ConfD UG where the CLI “load” command is described, you can see that JSON input is not supported by the CLI “load” command. The different CLI styles format and XML are currently supported.

You can use the confd_load tool, that use the MAAPI maapi_load_config() function, to load JSON format config/state data. For example:

$ confd_load -F O -m -l full.json

If you want to enable loading JSON format config/state from the CLI you can write your own clispec command or action that uses the confd_load command or your own maapi_load_config() program/script.