7_API REFERENCE MANUAL
7.6.1.2
Java
In JAVA the are many JSON libraries to work with JSON strings. This document will
show the usage of one of these libraries, Gson.
Create JSON string from an object.
DataObject obj = new DataObject();
Gson gson = new Gson();
// convert java object to JSON format, and returned as JSON
formatted string
String json = gson.toJson(obj);
Read data from JSON file and convert to object.
Gson gson = new Gson();
BufferedReader br = new BufferedReader(new
FileReader("c:\\file.json"));
//convert the json string back to object
DataObject obj = gson.fromJson(br, DataObject.class);
7.6.1.3
C
In C# it is posible to create a JSON string from an object.
var jsonSerializer = new
System.Web.Script.Serialization.JavaScriptSerializer();
string json = jsonSerializer.Serialize(yourCustomObject);
It is posible to create an object from a JSON string.
var jsonSerializer = new
System.Web.Script.Serialization.JavaScriptSerializer();
var yourCustomObject =
jsonSerializer.DeserializeObject<MyType>(jsonString);
7.6.2
How to make a REST call
7.6.2.1
PHP
7.6.2.1.1
GET REQUEST
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://...");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$curl_response = curl_exec($curl);
curl_close($curl);
$decoded = json_decode($curl_response);
Содержание Nexo NLX1
Страница 1: ...E S P INSTRUCTIONS MANUAL VERSION 2 0 NEXO NLX1 SYSTEM...
Страница 2: ......
Страница 3: ...INSTRUCTIONS MANUAL VERSION 1 0 NEXO NLX1 SYSTEM...
Страница 7: ...CONTENTSOJMAR 7 PAGE LEFT BLANK INTENTIONALLY...
Страница 14: ...2_MANUAL DE INSTALACI N The following files will appear in the selected folder jre Ojmar API exe...
Страница 33: ...2_MANUAL DE INSTALACI N OJMAR 33 Figure 2 3 Measurements of the smooth strike in mm inches Figure 2 of 2...
Страница 39: ...2_MANUAL DE INSTALACI N OJMAR 39 PAGE LEFT BLANK INTENTIONALLY...
Страница 57: ...3_PUESTA EN MARCHA OJMAR 57 PAGE LEFT BLANK INTENTIONALLY...
Страница 62: ...5_MANUAL DE MANTENIMIENTO 1 2 3 User key master or service 4...
Страница 70: ...5_MANUAL DE MANTENIMIENTO...
Страница 74: ...5_MANUAL DE MANTENIMIENTO PAGE LEFT BLANK INTENTIONALLY...
Страница 150: ...7_API REFERENCE MANUAL options BT group 1 range_from 1 range_to 100...
Страница 184: ...7_API REFERENCE MANUAL PAGE LEFT BLANK INTENTIONALLY...
Страница 186: ...7_API REFERENCE MANUAL Option b...
Страница 187: ...7_API REFERENCE MANUAL OJMAR 187 Option c INSTALLING ONE ROUTER PER 50 LOCKS IS RECOMMENDED...
Страница 188: ...7_API REFERENCE MANUAL...