[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: Draft JSON specification for CIF
- Subject: Re: Draft JSON specification for CIF
- From: Andrius Merkys <andrius.merkys@xxxxxxxxx>
- Date: Thu, 13 Apr 2017 18:42:52 +0300
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;h=subject:to:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-transfer-encoding;bh=GvFNRsG+F8ERPMKpljJlcpnPA1Q7uDYKguvNfe7qJJE=;b=BtcQeK842jzjj9Ea+/VJ+Ju9olmml7khW1epQ/MF4AGveHliUGW6eCLmLZl/GA002f9kjduTG9kDoHd3EYPheo/dDtAUvmyzB56Xd6lYtH1Hj7UcQ9Ondj9hNyy5Djg4AkLOUCqPd1pPavzRMSIRLz6ael3oRtlrGyawdG73aUN+RrVmZNMKWHMEBVDfBpcy/7rGdpSN6XGKCzS1hzxq+kFCLJZyq9cvL9PBGISW3eS1n3kbwVGbNmk86Jif+fxA7fr8IEzip992Kzz2xaeB7Dazqx1UAxXzyW5+EdPY8ogFgKr6gLlYkjnxLEXwEPCi38a7rINpUC5n/6u4Pwx3rw==
- In-Reply-To: <CACaHzQU+25tZQXe1EKUFi4y+UJfa+rA6z7F7Y2EvWhX=Jg6P8g@mail.gmail.com>
- References: <CAM+dB2fszww=4A_w6evqg=5O9KKLnujajmg_SPSX=hCRQiBPtg@mail.gmail.com><CAF_YUvWgON8Z3JS1TePu3K=SRErN4TBhNTP1Q3GfdJeoLnymMw@mail.gmail.com><CACaHzQU+25tZQXe1EKUFi4y+UJfa+rA6z7F7Y2EvWhX=Jg6P8g@mail.gmail.com>
Dear Marcin, that's why I suggest retaining CIF value types. CIF parser knows thetype of each value read (here is the difference between ? and '?') and Isuggest storing this bit of information inside JSON explicitly. Analternative would be to use JSON boolean datatype and/or null value, or"\u0001" and "\uFFFF" as suggested by John. I personally recommendagainst using any escaping as this would add another layer of complexity. Best,Andrius On 13/04/17 18:13, Marcin Wojdyr wrote:> Bob,>>> - This adds the unnecessary complication of what to do with "." and "?"> I think you imply that . and ? should be expressed in JSON as "." and "?".> But this would be ambiguous: JSON "?" could mean either unknown or string "?".>> Marcin> _______________________________________________> cif-developers mailing list> cif-developers@iucr.org> http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers -- Andrius MerkysPhD student at Vilnius University Institute of Biotechnology, Saulėtekio al. 7, V325LT-10257 Vilnius, LithuaniaLecturer at Vilnius University Faculty of Mathematics and Informatics, Naugarduko g. 24LT-03225 Vilnius, Lithuania _______________________________________________cif-developers mailing listcif-developers@iucr.orghttp://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- RE: Draft JSON specification for CIF (Bollinger, John C)
- Re: Draft JSON specification for CIF (Marcin Wojdyr)
- References:
- Draft JSON specification for CIF (James Hester)
- Re: Draft JSON specification for CIF (Robert Hanson)
- Re: Draft JSON specification for CIF (Marcin Wojdyr)
- Prev by Date: Re: Draft JSON specification for CIF
- Next by Date: Re: Draft JSON specification for CIF
- Prev by thread: Re: Draft JSON specification for CIF
- Next by thread: Re: Draft JSON specification for CIF
- Index(es):