JSON not reading and displaying a special charactor that is &

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ramesh Reddy
    New Member
    • Jan 2012
    • 1

    JSON not reading and displaying a special charactor that is &

    In Our appication JSON not able to display SD&O string. Its displaying like SD only.
    If we give space like SD &O or SD& O its displaying.
    We tried with escaping & but its not working.. we thought JSON not able to read that.

    Please tell me the solution to display SD&O .
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what is an sd&o string? or do you mean "sd&o"? how are you viewing it/what do you use to view it? (I guess it's rather a problem with the viewer than with JSON itself)

    Comment

    • KavalaRamesh
      New Member
      • Jan 2012
      • 3

      #3
      Sd&O is an Organization. Actually we are extracting organizations from one view and displaying on Web.
      Please provide solution to me Dormilich

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        it may thus be that "&O" is interpreted as HTML entity where it is invalid and thus omitted. check the source code if it is there.

        Comment

        • KavalaRamesh
          New Member
          • Jan 2012
          • 3

          #5
          Hi Dormilich,

          In my question i have mentioned when we give space like SD &O or SD& O its displaying. Here its works right "&O".

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            JSON itself does not have a problem with &, &O or SD&O. hence I assume it is a problem with either your JSON processor or output viewer. since I have no knowledge of both parts, I can only make general assumptions.

            Comment

            • KavalaRamesh
              New Member
              • Jan 2012
              • 3

              #7
              One more thing is there is no problem with Mozilla and google chrome browsers. It getting issue in Internet explorer only.

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                It getting issue in Internet explorer only.
                hm, yes, that's typical. most problems you have are in IE.

                Comment

                Working...