Difference between revisions of "Action: JSON Parse"

(Created page with "This action enables strucutred data in JSON format to be parsed into a MacroDroid dictionary variable. [[https://en.wikipedia.org/wiki/JSON|JSON] data is a widely used format...")
(No difference)

Revision as of 11:23, 31 March 2022

This action enables strucutred data in JSON format to be parsed into a MacroDroid dictionary variable.

[[1] data is a widely used format by many Web APIs to provide data in a structured/nested format. A typical example of such data is below:

{

   "firstName": "Rajesh",
   "lastName": "Kumar",
   "gender": "man",
   "age": 24,
   "address": {
       "streetAddress": "126 Udhna",
       "city": "Surat",
       "state": "GJ",
       "postalCode": "394221"
   },
   "phoneNumbers": [
       { "type": "home", "number": "7383627627" }
   ]

}

This data can be obtained from the following url: https://tools.learningcontainer.com/sample-json.json