box2d allow conditional json input

For research any input parameter can be replaced by a "branching"
object, modeled after the general branching format.