An utility class to convert arbitrary string into a JsonConstruct, if
possible.