MDX -> JSON. Working beta