Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jessi 3 posts 23 karma points
    Sep 11, 2013 @ 14:56
    Jessi
    0

    JSON nodes are not passing on validator?

    Im using JSON node like ##, and the validators which im checking out are, http://jsonformatter.curiousconcept.com and http://jsonlint.com . when i paste the node in url path its giving me the results as it is mentioned in the backend. but when i provide this in validator, i have caught up with these invalid node result.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 16, 2013 @ 22:54
    Jan Skovgaard
    0

    Hi Jessi and welcome to our :)

    I'm not quite sure what the problem is - what messages are you getting that results are invalid? Could you ellaborate a bit more or perhaps add some screenshots?

    Looking forward to hearing from you.

    /Jan

  • Jessi 3 posts 23 karma points
    Sep 18, 2013 @ 08:45
    Jessi
    0

    Yes sure, I have attached the screenshots of the errors which got it from 2 different validators. 

    When i paste the content to validate, it gives an error /Invalid results of JSON Node. I'm awaiting for your reply, 

    Thanks in advance,

    Jessi

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 18, 2013 @ 20:35
    Jan Skovgaard
    0

    Hi Jessi

    Thanks for the screendumps - so how are you generating the JSON? If possible please add some code samples.

    Cheers, Jan

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Sep 18, 2013 @ 22:10
    Chriztian Steinmeier
    0

    Hi Jessi,

    It looks like you need to escape the HTML content of some fields.

    If you're using an XSLT package you probably just need to find a line looking something like this:

    <xsl:value-of select="json:Node2JSON(bodyText)" />
    

    — and then you need to add an attribute:

    <xsl:value-of select="json:Node2JSON(bodyText)" disable-output-escaping="yes" />
    

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft