Ad
  • Default User Avatar

    This gotta be the weirdest kata I've ever done. It's like creating your own data format by combining string, array, object, and JSON format together.|

    As a result you'll have a string you may just copy-paste whenever you feel like defining a list of objects - now without the need to put in names, IDs, curly brackets, colon signs, screw up everything, fail searching for a typo and begin anew. This might come in handy with large lists.

    No offense, but I don't see how creating your own format can be handy when there is already a standard format like JSON, in which you can convert and export it to various formats using dozens of tools available online.

  • Custom User Avatar
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    So just confirming... we're creating a string that's kinda like JSON but slightly different? I think most people will probably glance over the description and assume a) we need to make an array of objects, or b) return a JSON string. This is because objects are useful, JSON is useful... having JSON with weird formatting isn't so useful ;P

    Technically this is fine, but you may want to warn coders that this is neither a JavaScript object nor JSON.