Re: EXI for JSON structure

Hi Taki.  Am seeing some jslint difficuties in your example:

- birthday value should be quoted, otherwise considered an incorrect number
- comma after "Boss"

On 2/1/2016 5:17 PM, Takuki Kamiya wrote:
>        {
>          "person" : {
>            "id" : "Boss",
>            "name" : {
>              "family" : "Smith",
>              "given" : "Bill"
>            },
>            "email" :"smith@foo.com",
>            "YearsOfService" : 20,
>            "weight" : 175.4,
>            "birthday" : 1955-03-24,
>            "link" : {
>              "manager" : "Boss"
>              "subordinates" : "worker"
>            }
>          }
>        }

Corrected version:

{
   "person" : {
	"id" : "Boss",
	"name" : {
	  "family" : "Smith",
	  "given" : "Bill"
	},
	"email" : "smith@foo.com",
	"YearsOfService" : 20,
	"weight" : 175.4,
	"birthday" : "1955-03-24",
	"link" : {
	  "manager" : "Boss",
	  "subordinates" : "worker"
	}
   }
}

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman@nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

Received on Tuesday, 2 February 2016 06:21:03 UTC