Faster implementation of fromJSONstat
Remove period
New implementation of toJSONstat