work with no className in JSON