The specific function in the fpctwit code does what you need, I think?
If you don't understand it, read it again.
I would anyway suggest focussing on 1 demo project/code snippet, go through the code to see what happens, including how the json code works.
That code snippet need not even be Leledumbo's, ludob's and my fpctwit code
Reading too many examples superficially is sure to confuse people.
If you then have specific questions, I'd suggest you post them. Otherwise, I don't think there's much we can do.