Epson TM-T20II-i TM-i Series WebConfig API Users Manual for TM-i firmware ver. - Page 13

JSON format

Page 13 highlights

JSON format { "response" : { "success" : "true" } , "%Category%" : { "%Key1%" : "%Value1%" , "%Key2%" : "%Value2%" , "%Key3%" : "%Value3%" , } } The above keys are in no particular order. Response body (Example : config_tcpip_wired.cgi) { "response" : { "success" : "true" } , "WiredNetwork" : { "IPAddressSettingMethod" : "Auto" , "APIPA" : "Enable" , "IPAddress" : "192.168.192.168" , "Netmask" : "255.255.255.0" , "Gateway" : "192.168.192.1" , "DNSServerSettingMethod" : "Auto" , "DNSServerIPAddress1" : "192.168.192.1" , "DNSServerIPAddress2" : "192.168.192.1" , "DNSServerIPAddress3" : "192.168.192.1" } } Chapter 2 Response Body Format 2 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

13
Chapter 2
Response Body Format
2
JSON format
Response body (Example : config_tcpip_wired.cgi)
{ "response" :
{
"success" : "true"
} ,
"%Category%" :
{
"%Key1%" : "%Value1%" ,
"%Key2%" : "%Value2%" ,
"%Key3%" : "%Value3%" ,
}
}
The above keys are in no particular order.
{ "response" :
{
"success" : "true"
} ,
"WiredNetwork" :
{
"IPAddressSettingMethod" : "Auto" ,
"APIPA" : "Enable" ,
"IPAddress" : "192.168.192.168" ,
"Netmask" : "255.255.255.0" ,
"Gateway" : "192.168.192.1" ,
"DNSServerSettingMethod" : "Auto" ,
"DNSServerIPAddress1" : "192.168.192.1" ,
"DNSServerIPAddress2" : "192.168.192.1" ,
"DNSServerIPAddress3" : "192.168.192.1"
}
}