I am using snmp4j to do a SNMP Walk result needs to be sent to a client to decode in python for further analysis. I am new to json and need to help in knowing best ways to convert java datatypes to json so that it can be easily decoded in python. I am not sure if it can be decoded in proper dicts or lists but any help in doing so will be useful. Currently I am using gson for converting below resonse to json
[vbs=[1.3.6.1.2.1.2.2.1.2.1 = VLAN1, 1.3.6.1.2.1.2.2.1.2.2 = FastEthernet0/1],status=0,exception=null,report=null]
and below is result when i do json.loads
[{u'vbs': [{u'variable': {u'value': [86, 76, 65, 78, 49]}, u'oid': {u'value': [1, 3, 6, 1, 2, 1, 2, 2, 1, 2, 1]}}, {u'variable': {u'value': [70, 97, 115, 116, 69, 116, 104, 101, 114, 110, 101, 116, 48, 47, 49]}, u'oid': {u'value': [1, 3, 6, 1, 2, 1, 2, 2, 1, 2, 2]}}], u'status': 0}]
please help in understanding better ways to encode into json for easy and usable python decodes. Is java serialization required here? I am not sure what it means but still wondering if my question is clear, any help at least to point me right resources will be of great help.