3

Recently, I asked a question but didn't receive much attention. In the meantime, I researched and obtained a "custom" working solution for my use case. After a few days, another person added a solution that was backed by the official framework.

I'd love to improve this solution in a way that includes a better example with simple JSON and nested JSON so that others can benefit from it.

I think I have two options to improve the post -

  • Suggest an edit to the existing answer with example and all (this may get rejected)
  • Update my answer (not sure is this will be considered as a copy & paste)

So, what is the best practice(s) to deal with such a situation?

8
  • 6
    It's fine to improve upon someone else's answer using an answer of your own if you properly give them credit for it. stackoverflow.com/help/referencing
    – Kevin B
    May 5 at 20:45
  • 5
    also... it seems you edited your question to specify that you needed it to handle nested json, which wasn't there before and in a sense invalidates the answer you received, since it didn't take into account nested json. That's generally frowned upon, as the user did provide a correct answer to the question that was originally asked and the edit effectively turned a correct answer into an incorrect (or, at minimum, lacking) one. I'd probably reverse that edit, and then just include the additional info in your answer addressing nested json.
    – Kevin B
    May 5 at 20:50
  • 2
    That makes sense (btw, I reversed the edit). What about creating another post (Q&A) with a proper-rephrased question and answer with better examples and use-cases?
    – JPG
    May 5 at 20:58
  • You can't "suggest an edit" - not really sure what that option means (unless you writing FAQ proposal... which you seem not to... on other hand it is not "specific-answer" either... confusing - consider edit). May 5 at 21:30
  • 1
    Option 3: post a comment under the answer? That is what comments are for - discussing the content and then notably with the intent to see it improved. If anything, you may come to the conclusion you should do nothing.
    – Gimby
    May 9 at 9:04
  • @AlexeiLevenkov: For users without enough rep to earn the "edit posts" privilege, clicking the "Edit" button allows them to suggest edits, which then cause those suggested edits to appear in the Suggested edits review queue. (If that review queue is full, new edits can't be suggested.)
    – V2Blast StaffMod
    May 9 at 21:35
  • 1
    @V2Blast if you check OP's rep (79K) they are way past that point :) There are plenty of request to allow high-rep user to "suggest" edits but all are ignored so far... The only option for us, 2K+ users, is to edit and rollback, which is quite awkward. May 9 at 22:16
  • @AlexeiLevenkov: Ah, good point.
    – V2Blast StaffMod
    May 10 at 17:12

1 Answer 1

2

You are allowed to answer your own questions

Stack Exchange has always explicitly encouraged users to answer their own questions.

If there is an answer that may be generic, but will be helpful to others who stumble upon the question, don't edit it to include your custom solution. Especially if the custom problem was not explicitly stated in the original question. Obvious but don't make an answer worse by editing it.

Answering your own questions documenting what you did and what worked for you is suggested as it allows others (or yourself) to find it in the future and document the knowledge for the community.

Other potential options depending on the specific situation include commenting or editing the answer to include some "no-go" attempts.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .