You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/09/19 17:06:04 UTC

[jira] [Commented] (COMDEV-157) Reformat json version of RDF files to display multi-line input better

    [ https://issues.apache.org/jira/browse/COMDEV-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14877163#comment-14877163 ] 

Sebb commented on COMDEV-157:
-----------------------------

Sample file that's tricky to read:

https://svn.apache.org/repos/asf/comdev/projects.apache.org/site/json/projects/airavata.json

AFAIK the new-lines and additional spaces are not significant in the original RDF.
They are just for legibility so it is a shame the JSON is rather less readable.

Note that the summary file "projects.json" is used by the site Javascript.
However it would be easy enough to check if the field is an array and use join if so.
This would allow the summary file to be made more readable as well

> Reformat json version of RDF files to display multi-line input better
> ---------------------------------------------------------------------
>
>                 Key: COMDEV-157
>                 URL: https://issues.apache.org/jira/browse/COMDEV-157
>             Project: Community Development
>          Issue Type: New Feature
>          Components: Projects New
>            Reporter: Sebb
>
> The description (and short desc) RDF tags may contain multi-line text.
> JSON unfortunately does not support line continuations.
> However such fields could be broken up as described here [1]
> AFAIK the generated files are not actually being used yet, so now would be a good time to change the syntax.
> [1] https://gun.io/blog/multi-line-strings-in-json/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)