use JSON and a scale for X