Oops, missed to set it to $map instead of $json..