From e03d6e09983bb5ad99352933c4d2f21b139294d2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Feb 2016 14:46:23 +0100 Subject: Fix broken number parsing in fromJSON The call to tmp_number.append had its arguments mixed up. Also, JSON does not allow a trailing "," after array/object members. --- tests/lang/eval-okay-fromjson.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/lang/eval-okay-fromjson.nix') diff --git a/tests/lang/eval-okay-fromjson.nix b/tests/lang/eval-okay-fromjson.nix index 2a9ad0cabeb0..102ee82b5e6b 100644 --- a/tests/lang/eval-okay-fromjson.nix +++ b/tests/lang/eval-okay-fromjson.nix @@ -14,7 +14,7 @@ builtins.fromJSON "Animated" : false, "IDs": [116, 943, 234, 38793, true ,false,null, -100], "Latitude": 37.7668, - "Longitude": -122.3959, + "Longitude": -122.3959 } } '' -- cgit 1.4.1