Using immutable json representation