Support » Plugin: JSON API » JSON API output validation issue : Carriage return added randomly

  • Hi all,

    I am having some troubles with the JSON API plugin :

    Everything seems to work just fine except that when I try to validate to JSON here : with a post or a page of posts it does not validated as it seems carriage return are added randomly and if a just delete the return before the new lines, it does validate
    example if you take here and try to validated it in it will give you an error on line 11 but if you make sure that line 11 is on only one line, it does validate for this line and goes to the next one with the same issue (line 58 here).

    What could it be ? A plugin ? WordPress version ? I cannot use it parsed with jQuery because of that …

    for example, categories are working just fine.

    Does someone had the same issue ?

    Thank you for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • So actually if you check the code well, it is not that random. It is after every HTML opening tag (img, div, a etc)

    Did you ever find a resolution to this issue? We’re having the exact same issue and I’m unable to get rid of it. Driving me crazy.

    Nop never figured it out …

    I really think it is a plugin issue … maybe we should compare plugins to see if we have some in common …

    If you do find a way I would be happy to know !

    Sure, if it’ll help, lets. I’ve found that a valid file that sits in the webroot is fine.

    Same file sitting inside the /content/plugins/ directory becomes broken. It has to be something else thats doing it.

    maybe a list of all the plugins we are using and seeing if there is a mutual plugin between our two installs?

    It looks like the issue that warpedspeed and I were working on was related to the WP Minify plugin re-writing and munging up the JSON output. Makes sense.

    I disabled that plugin and the JSON output now validates. Hopefully this will help someone else.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘JSON API output validation issue : Carriage return added randomly’ is closed to new replies.