Fix #949

Test are fine for me :ok_woman:  

Give a try guys, parsing is always tricky :cactus:  

Explanations : the case with the { in a newline generate an attribute { in the object (dirty!). This seems to be ignored in all other case. In timeperiod, it's computed as a timerange which obviously fails.