Added JSON to convert length