youknowone / VisualJSON

JSON pretty-viewer for OS X.
http://itunes.apple.com/app/id488709442
Other
301 stars 61 forks source link

complex text data not displayed #25

Closed johnbuckman closed 11 years ago

johnbuckman commented 11 years ago

Some complex text isn't able to be displayed, yet is valid JSON.

Here is a screen photo in VJ:

visualjson

and you can see that it is valid JSON and displays fine in the Google Chrome debugger:

chromedebugger

here is sample JSON that causes this problem:

{
  "page": "zilla",
  "artist": "Zilla",
  "banddesc": "Live, improvised electronica",
  "bio": "\nZilla is a Colorado based trio of musicians with the live musical experience in mind. A 100 percent improvised creation, each Zilla concert proves to be a completely unique occurrence, with even the band members having no idea where the music will take them on any given night. Relying on their ability to listen to one another to create a hyper-focused form of live electronic dance music, Zilla is dedicated to spreading their rare breed of beats, bass, and \"uncontrollable musical fury,\" and keeps up an incredibly active live performance schedule. Their goal is that each performance reflect what live music should be all about: spontaneity, flow, groove, and a damn good dance party.\n\nZilla is comprised of three seasoned musicians: Michael Travis, Jamie Janover and Aaron Holstein.\n\nZilla's constant focus is to create a whole, complete sound devoid of fragmentation, tangential wandering solos, and other characteristics that plaque improvisational music today. The music strives to serve all those participating, including the audience. No one in the band has any idea what is going to happen a nanosecond ahead of time; they rely on their instincts and musical history together to create a sound that rarely strays from its intended direction. The collective whole is truly the dominant force in this band.\n\nThe music itself is a plethora of grooves, beats and highly percussive breaks, which cause the listener to become engulfed within the sonic vortex of sounds encompassing them. From down-tempo to jungle, from trip-hop to break-beat and trance the band plays on pure emotion, so each night is different and varied, and no song is ever the same.\n\nZilla is about being as aware as humanly possible in the moment. The band plays, the crowd reacts, the band reacts and so on and so on. A cyclical paradigm is created in which everyone plays a part. A whole new form of tension-release music has been created in which the music never has to resolve itself in order to sustain the mood. It merely adapts, evolves.\n\nIt's been said that Zilla is the ultimate live experience - future music. The music plays the band, and not the other way around. Zilla is currently touring in support of their latest CD release, Egg. Their infectious energy has crowds from North America to Japan dancing up a storm to a completely new brand of live musical experience.\n\nMusician Bios\n\nMichael Travis (drums, percussion, keyboards, sampler, mallet Kat) has spent over a decade as the driving percussive force in the nationally popular band, The String Cheese Incident. Travis continues to be an innovator of improvisational drumming, managing to play hand percussion and melodies while simultaneously keeping incredible time with the kit.\n\nAaron Holstein (bass, keyboards, sampler, vocals\/vocoder\/beatbox) has had a long and lush musical history, playing guitar with bands such as Boogie Shoes and VibeSquad. Holstein's progression has transformed him from the notion of a typical guitar\/bass player, to an applauded adapter leaving behind the traditional notions of what it is to \"jam\" with a guitar or bass. In the process, he has focused on bass and keyboards and has decided to leave the guitar at home in order to more fully serve the Zilla concept\/sound.\n\nJamie Janover (hammered dulcimer, Mini-kit, electric kalimba, mini-sitar, sampler, percussion, tamboura, tongue drum, water) is a world-renowned hammered dulcimer innovator whose long list of band credits is more than impressive. Winner of the 2002 national hammered dulcimer championships, Janover continues to expand the limits of all his instruments by creating a fusion between their timeless sounds and the pertinent call of today's modern dance scene.\n",
  "genres": [
    "Electronica",
    "New Age"
  ],
  "skudata": {"zilla-egg": {
      "album": "Egg",
      "albumnotes": "Maybe the reason Zilla is performing to so many sold out crowds these days is because of the ultra-rare musical niche they inhabit: improvised DJ set soundscapes performed by actual humans on actual instruments—no loops or sequences. Or, maybe it's just because they're a great band. In any case, Zilla is a Colorado based trio of musicians that specialize in live, improvised electronica. Be sure to listen for the great hammered dulcimer performance by Jamie Janover on the \"Wicker Pilots\" track and others. Full album art included with download purchase."
    }}
}
youknowone commented 11 years ago

It looks '\n' become a real new line character in VisualJSON.

youknowone commented 11 years ago

preview: http://youknowone.github.io/VisualJSON/downloads/VisualJSON%201.5.pkg

johnbuckman commented 11 years ago

My JSON with \n in it looks perfect now, and the "show brief" feature works too.

youknowone commented 11 years ago

1.5 is available in appstore now. Thanks for the report ;)