you are viewing a single comment's thread
view the rest of the comments
[โ€“] 63 points 2 months ago (10 children)

Not sure every software engineer needs to know this. If they'd said web developer I suppose this would really be expected knowledge, but then you'd probably want to shoot them anyway.

  • source
  • hideshow 10 child comments
  • [โ€“] 8 points 2 months ago (3 children)

    Web developer, or business developer. A lot of inter-system communications these days is in JSON, whether there is any JavaScript involved or not.

  • source
  • parent
  • hideshow 3 child comments
  • [โ€“] 7 points 2 months ago (4 children)

    honestly, this is used for debugging. Why not just pass the object as value to the console.log()

  • source
  • parent
  • hideshow 4 child comments
  • [โ€“] 6 points 2 months ago (2 children)

    Stringify is used to serialize an object. This is useful if you are going to store the object or transfer the object contents to some other system or component, possibly over a network using a network protocol.

    For debugging, you should use a function like console.log, which depending on the client might even offer an interactive UI to explore the object with structurally aware context. Not just print a giant string, which you get from stringify.

  • source
  • parent
  • hideshow 2 child comments
  • load more comments (1 reply)