lamiastella

validated JSON

Jul 23rd, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.74 KB | None | 0 0
  1. {
  2.     "api": "POST",
  3.     "sdid": "6fd48f79c02b41cf99f2bf8bbf29596d",
  4.     "deviceToken": "",
  5.     "data": {
  6.         "stepCount": 0,
  7.         "description": "",
  8.         "heartRate": 0,
  9.         "state": 0,
  10.         "activity": 0
  11.     },
  12.     "config": {
  13.         "stepCount": {
  14.             "min": 1000,
  15.             "max": 10000,
  16.             "type": "Integer",
  17.             "function": "increment",
  18.             "increment": 2,
  19.             "period": 5000
  20.         },
  21.         "description": {
  22.             "type": "String",
  23.             "function": "random"
  24.         },
  25.         "heartRate": {
  26.             "min": 0,
  27.             "max": 200,
  28.             "type": "Integer",
  29.             "function": "random"
  30.         },
  31.         "state": {
  32.             "min": 0,
  33.             "max": 1,
  34.             "type": "Integer",
  35.             "function": "random"
  36.         },
  37.         "activity": {
  38.             "type": "Integer",
  39.             "function": "cycle",
  40.             "value": [0, 2, 1, 2, 1, 1, 1, 0]
  41.         }
  42.     },
  43.     "period": 1000
  44. }
Advertisement
Add Comment
Please, Sign In to add comment