1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

Updated "jml" format

Discussion in 'Census: General Discussion' started by DanKinney, Feb 22, 2012.

  1. DanKinney

    DanKinney Guest

    We just pushed a change for the jml renderer.  Initially, this was just a beautified formatting of JSON data (similar to what you would get from something like jsbeautifier.org) in text/plain format.

    Scott just made this be text/html format so that we could add some styling to the JSON elements, including colors.  Even better, all containers are now foldable, which will allow you to quickly hide details you don't need to get to the important information that you do need.  Folded containers will be underlined so that you know that something is being hidden.

    At all times, you can copy the content and it will still be valid JSON.

    If that wasn't awesome enough, he has put the simple elements at the top of each container.  Now, you won't have to scroll all the way to the end to get the "returned" or "id" values.

    Try this out at...

    census.daybreakgames.com/jml/get/eq2/character/

    This is so freakin' awesome.  Please raise your glass in the direction of Scott Maxwell.

    -dan

     
  2. Dethdlr

    Dethdlr Guest

    That's pretty sweet!  Nice job Scott.

     
  3. DanKinney

    DanKinney Guest

    I forgot to mention that the path to any element is displayed in a tooltip if you hover over it.  That might help you access data deep in the bowels of a response.

    This wasn't completely an excercise in eye candy - we are using this internally to help game teams navigate the data they are giving to us so that we can make it mo-betta.

    -dan

     
  4. DanKinney

    DanKinney Guest

    We just did a small tweak on this to fix a problem that only seemed to affect Firefox (it wasn't indenting properly because of a syntax in the CSS).

    -dan

     
  5. DanKinney

    DanKinney Guest

    ...and another tweak <img src="/station/images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" border="0" />

    If you include c:attachments=all in your query, the JML will format these as hyperlinks.

    Check this record out (useful as it is a beastlord with lots of warders):

    census.daybreakgames.com/jml/get/eq2/character/884765581641?c:attachments=all&c:show=displayname

    We also also added bold style on all id, name and displayname attributes to make them stand out more.

    -dan

     

Share This Page