US Judges are pretty ruthless too, esp. in their own courtroom -- if they see this is just a spam law suite / mocking the courtroom I wouldn't be surprised to see people getting tossed into contempt. If they feel like the courts' time is being wasted they get really pissed. Don't mess with judges. [i][ii]
What? I don't have context for what else has occurred, but it sounds like the lawyer in this case was objecting to the bond that the judge put on his client?
Person A was on trial for (attempted?) murder. Person B posts to InstaFaceGram that Person A will be free soon. Person B then shows up to court and starts live-streaming the court proceedings, included of witnesses, to a sketch-sounding Facebook group.
Person B then lies to judge about what he was doing and so the judge throws him in jail for 6 months for contempt.
The probable witness tampering probably had something to do with the harsh contempt punishment.
Even if a judge decided your lawsuit was completely frivolous, I'm pretty sure most would just throw it out -- not throw you in jail for contempt. Now, if you filed dozens of similar frivolous lawsuits in the same court...
[i] http://www.gainesville.com/news/20170227/gainesville-man-get...
[ii] https://www.youtube.com/watch?v=ssujwibxOlA