Shapes like those are called "Spline"s. There are several different kinds of those.
In Box2D terms you would create a Body with an Edge-Fixture and Box2D will then keep this shape itself, once it was created in the World.
I think you are probably trying to achieve some kind of "ground". So you might want to check out this article: http://www.iforce2d.net/blog/2013-07-20