fix JSON in Polycharts to allow for functions.
fix bug due to previous commit on this file.