W3C home > Mailing lists > Public > public-exi@w3.org > February 2016

Re: EXI for JSON structure

From: Don Brutzman <brutzman@nps.edu>
Date: Mon, 1 Feb 2016 22:20:13 -0800
To: Takuki Kamiya <tkamiya@us.fujitsu.com>
CC: "public-exi@w3.org" <public-exi@w3.org>
Message-ID: <56B04A9D.2060902@nps.edu>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 2 February 2016 06:21:03 UTC