change alto-cost to JSONValue