Format question
Posted: Wed Nov 09, 2011 9:45 am
I am developing a format that conforms to the JSON data specification (http://www.json.org). At the moment, it looks like this:
The problem I have is that if a field is empty, it will skip the part between the colon and the comma. See the example below, e.g. the "volume", "abstract" or user fields:
What do I have to change to get a correct output ( for example, "keywords"="" )?
Thanks,
Christian
Code: Select all
`{ "id":`@`,"type":"`y`","author":"`a`","title":"`t`","editor":"`e`","journal":"`j`","volume":"`v`","pages":"`p-`","date":"`d`","publisher":"`u`","location":"`l`","url":"`z`","title":"`s`","user1":"`w`","user2":"`x`","user3":"`c`","user4":"`g`","abstract":"`b`","keywords":"`k`","notes":"`n`","user5":"`u5`","user6":"`u6`","user7":"`u7`","user8":"`u8 `","user9":"`u9`","user10":"`u10`","user11":"`u11`","user12":"`u12`","user13":"`u13`","user14":"`u14`","user15":"`u15`","user16":"`u16`","attachments":"`h`","groups":"`g`"},`
Code: Select all
{ "id":100850,"type":"Conference proceedings","author":"Boulanger, Christian","title":"Europeanisation Through Judicial Activism? The Hungarian Constitutional Court's Legitimacy and Hungary's 'Return to Europe'","editor","journal":"Contours of Legitimacy","volume","pages","date":"2002","publisher","location","url","title":"Europeanisation Through Judicial Activism? The Hungarian Constitutional Court's Legitimacy and Hungary's 'Return to Europe'","user1":"Boulanger-2002-Europeanization","user2","user3","user4":"COMP Judicial Activism","abstract","keywords","notes","user5","user6","user7","user8","user9","user10","user11","user12","user13","user14","user15","user16","attachments","groups":"COMP Judicial Activism"},
Thanks,
Christian